feat: refactor

This commit is contained in:
2022-04-23 03:41:04 +02:00
parent 42db054021
commit 4bf6a46a85
35 changed files with 2167 additions and 500 deletions

View File

@@ -86,9 +86,12 @@ output * bg `find $wallpapers_path -type f | shuf -n 1` fill
#
exec swayidle -w \
timeout 300 '~/.config/sway/lock_screen.sh' \
timeout 600 'swaymsg "output \* dpms off"' \
timeout 600 'swaymsg "output * dpms off"' \
timeout 660 'systemctl suspend' \
resume 'swaymsg "output \* dpms on"'
resume 'swaymsg "output * dpms on"' \
before-sleep '~/.config/sway/lock_screen.sh'
#
# 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