tileos-settings-sway/etc/skel/.config/swayidle/config
Alexander Oakman 2be7224e32 Improve the lock screen command
Running a screensaver is a very important security feature.
It is necessary that it always works and does not depend on the
state of the user's directories, so the screensaver run-script
should be placed in the system directory.
However, the locking process remains customizable because the user
script can be used too.
2024-08-23 21:59:49 +03:00

7 lines
411 B
Text

timeout 240 'light -G > /tmp/brightness && light -S 10' resume 'light -S $([ -f /tmp/brightness ] && cat /tmp/brightness || echo 100%)'
timeout 300 '/usr/share/sway/scripts/lock.sh'
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
timeout 900 'systemctl suspend'
before-sleep 'playerctl pause'
before-sleep '/usr/share/sway/scripts/lock.sh'
lock '/usr/share/sway/scripts/lock.sh'