mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-26 15:14:58 +08:00
12 lines
511 B
Text
12 lines
511 B
Text
# >> Idle configuration
|
|
#
|
|
# Example configuration:
|
|
#
|
|
# 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 300 'swaylock -f -c 000000' \
|
|
# timeout 600 'swaymsg "output * dpms off"' \
|
|
# resume 'swaymsg "output * dpms on"' \
|
|
# before-sleep 'swaylock -f -c 000000'
|