dotfiles/waybar/scripts/poweroff.sh

20 lines
331 B
Bash
Raw Normal View History

2024-01-16 18:33:53 -06:00
#!/bin/bash
2024-07-29 03:59:46 -05:00
case $(wofi -d -L 6 -l 3 -W 100 -x -75 -y 1225 \
2024-01-16 18:33:53 -06:00
-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