28 lines
452 B
Bash
28 lines
452 B
Bash
|
#!/bin/bash
|
||
|
case $(wofi -d -L 6 -l 3 -W 100 -x -100 -y 10 \
|
||
|
-D dynamic_lines=true << EOF | sed 's/^ *//'
|
||
|
Shutdown
|
||
|
Reboot
|
||
|
Log off
|
||
|
Sleep
|
||
|
Lock
|
||
|
Cancel
|
||
|
EOF
|
||
|
) in
|
||
|
"Shutdown")
|
||
|
systemctl poweroff
|
||
|
;;
|
||
|
"Reboot")
|
||
|
systemctl reboot
|
||
|
;;
|
||
|
"Sleep")
|
||
|
systemctl suspend
|
||
|
;;
|
||
|
"Lock")
|
||
|
loginctl lock-session
|
||
|
;;
|
||
|
"Log off")
|
||
|
hyprctl dispatch exit
|
||
|
;;
|
||
|
esac
|