diff --git a/scripts/powermenu b/scripts/powermenu index 9647ac7b..5a4dbf7e 100755 --- a/scripts/powermenu +++ b/scripts/powermenu @@ -113,8 +113,8 @@ typeset -A menu # Menu with keys/commands menu=( - [ Shutdown]="shutdown now" - [ Reboot]="reboot" + [ Shutdown]="systemctl poweroff" + [ Reboot]="systemctl reboot" [ Suspend]="systemctl suspend" [ Hibernate]="systemctl hibernate" [ Lock]="xflock4" @@ -171,7 +171,7 @@ function ask_confirmation() { fi if [ "${confirmed}" == 0 ]; then - "${menu[${selection}]}" + ${menu[${selection}]} fi } @@ -180,6 +180,6 @@ if [[ $? -eq 0 && ! -z ${selection} ]]; then ${menu_confirm} =~ (^|[[:space:]])"${selection}"($|[[:space:]]) ]]; then ask_confirmation else - "${menu[${selection}]}" + ${menu[${selection}]} fi fi