dotfiles/waybar/scripts/poweroff.sh

20 lines
329 B
Bash
Raw Normal View History

2024-01-16 18:33:53 -06:00
#!/bin/bash
2024-05-15 22:31:01 -05:00
case $(wofi -d -L 6 -l 3 -W 100 -x -490 -y 0 \
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