diff options
Diffstat (limited to 'conf.d/swayidle')
| -rw-r--r-- | conf.d/swayidle | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/conf.d/swayidle b/conf.d/swayidle index 3cd38cb..491ee91 100644 --- a/conf.d/swayidle +++ b/conf.d/swayidle @@ -1,6 +1,9 @@ -lock="timeout 30 'swaylock -fi ~/.cache/lockwallpaper'" -display="timeout 10 'swaymsg \"output \"*\" power off\"'" -resume="resume 'swaymsg \"output \"*\" power on\"'" -sleep="before-sleep 'swaylock -fi ~/.cache/lockwallpaper'" +# Args +command_args="-w +timeout 300 'swaylock -fi ~/.cache/lockwallpaper' +timeout 330 'swaymsg \"output \"*\" power off\"' +resume 'swaymsg \"output \"*\" power on\"' +before-sleep 'swaylock -fi ~/.cache/lockwallpaper'" -command_args="-w $lock $display $resume $sleep" +# Fix for missing SWAYSOCK +export SWAYSOCK="$(ls $XDG_RUNTIME_DIR/sway-ipc.* | head -n 1)" |
