24 lines
393 B
Text
24 lines
393 B
Text
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
entries="⇠ Logout\n⏾ Suspend\n⭮ Reboot\n⏻ Shutdown\n Lock"
|
||
|
|
|
||
|
|
selected=$(echo -e $entries | wofi --dmenu --cache-file /dev/null | 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
|