dotfiles/dot_config/i3/executable_power.sh

12 lines
327 B
Bash

#!/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