dotfiles/waybar/scripts/poweroff.sh
2024-07-29 03:59:46 -05:00

20 lines
331 B
Bash
Executable File

#!/bin/bash
case $(wofi -d -L 6 -l 3 -W 100 -x -75 -y 1225 \
-D dynamic_lines=true << EOF | sed 's/^ *//'
Shutdown
Reboot
Log off
Cancel
EOF
) in
"Shutdown")
systemctl poweroff
;;
"Reboot")
systemctl reboot
;;
"Log off")
hyprctl dispatch exit
;;
esac