19 lines
464 B
Bash
Executable file
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
|