11 lines
367 B
Plaintext
11 lines
367 B
Plaintext
# This will lock the screen after 300 seconds of inactivity.
|
|
timeout 300 "swaylock -f"
|
|
|
|
# Turn off all displays after another 300 seconds.
|
|
# and turn them back on when resumed.
|
|
timeout 600 "swaymsg 'output * dpms off'" resume "swaymsg 'output * dpms on'"
|
|
|
|
# Lock the screen before the computer goes to sleep.
|
|
before-sleep "playerctl pause"
|
|
before-sleep "swaylock -f"
|