dotfiles/dot_config/i3/executable_power.sh

12 lines
327 B
Bash
Raw Permalink Normal View History

2024-07-13 13:41:00 +03:00
#!/bin/bash
option=$(echo -e "Lock\nShutdown\nReboot\nSleep/suspend\nHibernate" | dmenu -p "Power:" -l 5 -c)
case "$option" in
"Lock") ~/.config/i3/locker.sh;;
"Shutdown") poweroff;;
"Reboot") reboot;;
"Sleep/suspend") ~/.config/i3/locker.sh suspend;;
"Hibernate") ~/.config/i3/locker.sh hibernate;;
esac