fix swayidle

This commit is contained in:
Johannes Loher 2024-12-08 21:04:34 +01:00
parent 33b69090ed
commit 95a302736a
Signed by: saluu
GPG key ID: BB8E7A0EB4C59227

View file

@ -288,13 +288,15 @@ bindsym $mod+$mod2+Print exec $HOME/.local/bin/swaygrim --all
# Lockscreen # Lockscreen
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
exec swayidle -w \ exec swayidle -w \
timeout 30 'makoctl -a away' \ timeout 5 'makoctl mode -a away' \
resume 'makoctl mode -r away' \
timeout 300 'swaylock -f' \ timeout 300 'swaylock -f' \
timeout 600 'swaymsg "output * dpms off"' \ resume 'makoctl mode -r away' \
resume 'swaymsg "output * dpms on"' \
resume 'makoctl -r away' \
before-sleep 'swaylock -f' before-sleep 'swaylock -f'
# timeout 600 'swaymsg "output * dpms off"' \
# resume 'swaymsg "output * dpms on" & makoctl mode -r away' \
bindsym control+$mod2+l exec swaylock bindsym control+$mod2+l exec swaylock
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------