feat(sway): update for new components
This commit is contained in:
13
sway/scripts/power-menu.sh
Executable file
13
sway/scripts/power-menu.sh
Executable 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
|
||||
Reference in New Issue
Block a user