dotfiles/de/home/.config/sway/scripts/powermenu.sh
2024-03-27 15:15:01 -06:00

19 lines
464 B
Bash
Executable file

#!/usr/bin/env bash
op=$( echo -e "⏻ Poweroff\n Reboot\n Suspend\n🔒 Lock\n Logout" | wofi -i --dmenu -a --width 250 --height 420 | awk '{print tolower($2)}' )
# --width 200 --height 225
case $op in
poweroff)
;&
reboot)
;&
suspend)
systemctl $op
;;
lock)
swaylock
;;
logout)
swaymsg exit
;;
esac