X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fsway%2Ffiles%2Fconfig.jinja;h=0ce972f0a12e381b6a8ec1b301dfef825f356511;hb=1e8669d6ef20399bdcba12e3818d54d211999435;hp=a18e5a81e9ad3139a43f88ea7387973131f7ce07;hpb=c493f745e673b7e24a8706292838b7b1c5154a67;p=max%2Fsaltfiles.git diff --git a/states/sway/files/config.jinja b/states/sway/files/config.jinja index a18e5a8..0ce972f 100644 --- a/states/sway/files/config.jinja +++ b/states/sway/files/config.jinja @@ -112,7 +112,7 @@ mode "$ratpoison" { bindsym c exec 'swaymsg mode "default"; swaymsg exec termite' bindsym q exec 'swaymsg mode "default"; swaymsg kill' - bindsym Shift+e exec 'swaymsg mode "default"; swaymsg exec bemenu-run' + bindsym Shift+e exec 'swaymsg mode "default"; swaymsg exec dmenu_run' bindsym $mod+l exec 'swaymsg mode "default"; "lock.nosmartcard"' bindsym Escape mode "default" @@ -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: