Compare commits

..

1 Commits

Author SHA1 Message Date
coolneng a7d9da8dda
Convert power menu into a rofi selection screen 2021-07-03 23:35:11 +02:00
1 changed files with 1 additions and 5 deletions

View File

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