Add swaylock-effects lock via lock.sh with fallback

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 23:56:04 +05:00
co-authored by Claude Sonnet 5.5
parent 125a01f4e4
commit caace8f3ff
6 changed files with 56 additions and 5 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#!/bin/sh
pkill -x swayidle
exec swayidle -w \
timeout 300 'swaylock -f' \
timeout 300 "$HOME/.config/sway/lock.sh" \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -f'
before-sleep "$HOME/.config/sway/lock.sh"