Compare commits

..

1 Commits

Author SHA1 Message Date
coolneng 4f7afc811b
Convert power menu into a rofi selection screen 2021-07-03 17:37:55 +02:00
1 changed files with 5 additions and 1 deletions

View File

@ -10,11 +10,15 @@ select_action() {
execute_action "$action" execute_action "$action"
} }
execute_command() {
bash -c "$1" "$2"
}
execute_action() { execute_action() {
case "$1" in case "$1" in
"Shutdown") ~/.local/share/scripts/power-manager "poweroff" ;; "Shutdown") ~/.local/share/scripts/power-manager "poweroff" ;;
"Reboot") ~/.local/share/scripts/power-manager "reboot" ;; "Reboot") ~/.local/share/scripts/power-manager "reboot" ;;
"Suspend") systemctl suspend -i ;; "Suspend") execute_command "systemctl suspend -i" ;;
esac esac
} }