2023-02-25 16:18:35 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
entries="⇠ Logout\n⏾ Suspend\n⭮ Reboot\n⏻ Shutdown"
|
|
|
|
|
|
|
|
selected=$(echo -e $entries|wofi --width 350 --height 250 --dmenu --cache-file /dev/null | awk '{print tolower($2)}')
|
|
|
|
|
|
|
|
case $selected in
|
|
|
|
logout)
|
|
|
|
swaymsg exit;;
|
|
|
|
suspend)
|
2023-05-29 17:26:05 +00:00
|
|
|
exec loginctl suspend;;
|
2023-02-25 16:18:35 +00:00
|
|
|
reboot)
|
2023-05-29 17:26:05 +00:00
|
|
|
exec loginctl reboot;;
|
2023-02-25 16:18:35 +00:00
|
|
|
shutdown)
|
2023-05-29 17:26:05 +00:00
|
|
|
exec loginctl poweroff -i;;
|
2023-02-25 16:18:35 +00:00
|
|
|
esac
|