dotfiles/scripts/dmenu-power
tavo-wasd fd69ecbbe6 init
2023-05-08 20:39:39 -06:00

11 lines
206 B
Bash
Executable file

#!/bin/sh
# Prompt for power options using dmenu
option=$(printf "Shutdown\nRestart" | dmenu -i -p "Power:")
case "$option" in
"Shutdown") sudo poweroff ;;
"Restart") sudo reboot ;;
*) exit 1 ;;
esac