X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fsway%2Ffiles%2Fconfig.jinja;fp=states%2Fsway%2Ffiles%2Fconfig.jinja;h=0ce972f0a12e381b6a8ec1b301dfef825f356511;hb=f795dba46e9dbb0d42d1476363526782387d63af;hp=c05fb15ee5bfdc47baaa5523d1d1e74521aa39f4;hpb=38776f458edfccf972d4bdb5f87b55c1b702de5d;p=max%2Fsaltfiles.git diff --git a/states/sway/files/config.jinja b/states/sway/files/config.jinja index c05fb15..0ce972f 100644 --- a/states/sway/files/config.jinja +++ b/states/sway/files/config.jinja @@ -193,12 +193,11 @@ focus_on_window_activation urgent for_window [class="^rdesktop"] move workspace number 9; floating disable for_window [class="Pinentry"] floating enable -{% set lockcmd = "swaylock -i {DP-1,eDP-1,HDMI-A-1}:~/Pictures/lockscreen_1080_1.png" %} +{% set lockcmd = "swaylock -e -f -i ~/Pictures/lockscreen_1080_1.png" %} -exec swayidle \ +exec swayidle -w \ timeout 300 "{{lockcmd}}" \ - timeout 600 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' \ + timeout 600 'systemctl suspend' \ before-sleep "{{lockcmd}}" # This keyboard has this layout on all machines: