X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fsway%2Ffiles%2Fconfig.jinja;h=ac0da0fc34a50897115e69bd0ff01de8f07ccdd2;hb=d3b03472ae3107e09e117def65c739aa9aaf00bf;hp=f7259a67b77b37b336353c27b3a18703d317d731;hpb=be10af663fe6435b8b95f5e519b6793d4c2ae7c5;p=max%2Fsaltfiles.git diff --git a/states/sway/files/config.jinja b/states/sway/files/config.jinja index f7259a6..ac0da0f 100644 --- a/states/sway/files/config.jinja +++ b/states/sway/files/config.jinja @@ -42,7 +42,7 @@ set $down j set $up k set $right l # Your preferred terminal emulator -set $term kitty +set $term foot # Your preferred application launcher # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on. @@ -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