23 lines
372 B
Bash
23 lines
372 B
Bash
#!/bin/bash
|
|
|
|
entries="⇠ Logout\n⏾ Suspend\n⭮ Reboot\n⏻ Shutdown\n Lock"
|
|
|
|
selected=$(echo -e $entries | fuzzel --dmenu | awk '{print tolower($2)}')
|
|
|
|
case $selected in
|
|
lock)
|
|
swaylock
|
|
;;
|
|
logout)
|
|
swaymsg exit
|
|
;;
|
|
suspend)
|
|
exec systemctl suspend
|
|
;;
|
|
reboot)
|
|
exec systemctl reboot
|
|
;;
|
|
shutdown)
|
|
exec systemctl poweroff -i
|
|
;;
|
|
esac
|