X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fsway%2Ffiles%2Fconfig.jinja;h=ac0da0fc34a50897115e69bd0ff01de8f07ccdd2;hb=d3b03472ae3107e09e117def65c739aa9aaf00bf;hp=6a3a8e048a2f83408a76e6ae320be1ab3f4ed483;hpb=73ca00607698df08e68a808e3a1addeb3c569a1d;p=max%2Fsaltfiles.git diff --git a/states/sway/files/config.jinja b/states/sway/files/config.jinja index 6a3a8e0..ac0da0f 100644 --- a/states/sway/files/config.jinja +++ b/states/sway/files/config.jinja @@ -74,6 +74,14 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. +{% set lockcmd = "swaylock -e -f -i ~/Pictures/Backgrounds/DSC02113.jpg" %} + +exec swayidle -w \ +timeout 300 "{{lockcmd}}" \ + timeout 600 'systemctl suspend' \ + before-sleep "{{lockcmd}}" + + ### Input configuration # # Example configuration: @@ -260,6 +268,8 @@ mode "resize" { } bindsym $mod+r mode "resize" +bindsym $mod+Alt+l exec '{{ lockcmd }}' + include /etc/sway/config.d/* # host specific section