feat(sway): update for new components

This commit is contained in:
2026-03-12 17:44:05 +01:00
parent 8cf31772a5
commit 4e765c57ff
4 changed files with 30 additions and 4 deletions

13
sway/scripts/power-menu.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# power menu via fuzzel
choice=$(printf "lock\nlogout\nsuspend\nreboot\nshutdown" | fuzzel -d -p "power: ")
case "$choice" in
lock) swaylock ;;
logout) swaymsg exit ;;
suspend) systemctl suspend ;;
reboot) systemctl reboot ;;
shutdown) systemctl poweroff ;;
esac