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
+1 -1
View File
@@ -3,7 +3,7 @@
opts=$' Lock\n Logout\n Suspend\n Reboot\n Shutdown'
choice=$(printf '%s' "$opts" | rofi -dmenu -i -p "Power" -theme ~/.config/rofi/catppuccin.rasi -theme-str 'window {width: 300px;} listview {lines: 5;} entry {enabled: false;}')
case "$choice" in
*Lock) swaylock -f ;;
*Lock) ~/.config/sway/lock.sh ;;
*Logout) swaymsg exit ;;
*Suspend) systemctl suspend ;;
*Reboot) systemctl reboot ;;