diff --git a/.config/sway/config b/.config/sway/config index 7e02131..054d8f3 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -68,17 +68,17 @@ exec_always wlsunset -lsd 47.6, -122.3 -t 3200 -T 6500 # This will lock your screen after 300 seconds of inactivity, then turn off # 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. -# exec swayidle -w \ -# timeout 600 'swaylock -f' \ -# timeout 1200 'swaymsg "output * dpms off"' \ -# resume 'swaymsg "output * dpms on"' \ -# timeout -# before-sleep 'swaylock -f' +exec swayidle -w \ + timeout 300 'swaylock -f' \ + timeout 1200 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' \ + timeout \ + before-sleep 'swaylock -f' # Exit sway (logs you out of your Wayland session) bindsym $mod+Shift+e exec swaynag -t custom -m 'Do you wish to fully reload your Sway session?' -b 'Yes' 'swaymsg exit' # Turn the system off -bindsym $mod+Shift+p exec swaynag -t custom -m 'What action would you like to perform?' -b 'Shutdown' 'poweroff' -b 'Restart' 'poweroff --reboot' +bindsym $mod+Shift+p exec swaynag -t custom -m 'What action would you like to perform?' -b 'Shutdown' 'poweroff' -b 'Restart' 'poweroff --reboot' -b 'Suspend' 'systemctl suspend' ### Input configuration # diff --git a/desktop.org b/desktop.org index 6839a76..9079409 100644 --- a/desktop.org +++ b/desktop.org @@ -91,17 +91,17 @@ exec_always wlsunset -lsd 47.6, -122.3 -t 3200 -T 6500 # This will lock your screen after 300 seconds of inactivity, then turn off # 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. -# exec swayidle -w \ -# timeout 600 'swaylock -f' \ -# timeout 1200 'swaymsg "output * dpms off"' \ -# resume 'swaymsg "output * dpms on"' \ -# timeout -# before-sleep 'swaylock -f' +exec swayidle -w \ + timeout 300 'swaylock -f' \ + timeout 1200 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' \ + timeout \ + before-sleep 'swaylock -f' # Exit sway (logs you out of your Wayland session) bindsym $mod+Shift+e exec swaynag -t custom -m 'Do you wish to fully reload your Sway session?' -b 'Yes' 'swaymsg exit' # Turn the system off -bindsym $mod+Shift+p exec swaynag -t custom -m 'What action would you like to perform?' -b 'Shutdown' 'poweroff' -b 'Restart' 'poweroff --reboot' +bindsym $mod+Shift+p exec swaynag -t custom -m 'What action would you like to perform?' -b 'Shutdown' 'poweroff' -b 'Restart' 'poweroff --reboot' -b 'Suspend' 'systemctl suspend' #+end_src ** Input