Compare commits
1 Commits
a7d9da8dda
...
4f7afc811b
Author | SHA1 | Date |
---|---|---|
coolneng | 4f7afc811b |
|
@ -10,11 +10,15 @@ 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") systemctl suspend -i ;;
|
||||
"Suspend") execute_command "systemctl suspend -i" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue