28 lines
452 B
Bash
Executable File
28 lines
452 B
Bash
Executable File
#!/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
|