(sway) power off displays first and lock second [needs testing]

This commit is contained in:
scbj
2025-06-11 13:24:44 +02:00
parent 9b96e38a97
commit 5889d87d74

View File

@@ -37,8 +37,8 @@ bar {
# start screen locker
exec swayidle -w \
timeout 300 'swaylock -f -e -i ~/dotfiles/images/city_skyline.png' \
timeout 330 'swaymsg "output * power off"; systemctl suspend' \
timeout 300 'swaymsg "output * power off"' \
timeout 330 'swaylock -f -e -i ~/dotfiles/images/city_skyline.png; systemctl suspend' \
resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -f -e -i ~/dotfiles/images/city_skyline.png'