dotfiles/rofi/.config/rofi/power.sh
2025-04-21 12:17:14 -03:00

22 lines
282 B
Bash
Executable file

#!/bin/bash
OPTIONS="\tLogout\n⏻\tShutdown\n\tReboot"
option=`echo -e $OPTIONS | awk '{print $1}' | tr -d '\r\n\t'`
if [ "$@" ]
then
case $@ in
*Logout)
i3-msg exit
;;
*Shutdown)
shutdown now
;;
*Reboot)
reboot
;;
esac
else
echo -e $OPTIONS
fi