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