feat: refactor
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user