changed power-off to shutdown in powermenu

This commit is contained in:
Tiago Sousa 2023-05-22 13:45:54 +01:00
parent 6d7f0e09e6
commit f32a2ecf83

View file

@ -1,10 +1,10 @@
#! /usr/bin/env bash #! /bin/sh
OPTIONS="Suspend\nLock\nReboot\nPower-off\nExit i3\n" OPTIONS="Suspend\nLock\nReboot\nShutdown\nExit i3\n"
LAUNCHER="rofi -dmenu -i -p Power" LAUNCHER="rofi -dmenu -i -p Power"
LOCKER="betterlockscreen -l" LOCKER="betterlockscreen -l"
option=$(echo -e "$OPTIONS" | $LAUNCHER | awk '{print $1}' | tr -d '\r\n') option=$(echo -e "$OPTIONS" | $LAUNCHER | awk '{print $1}' | tr -d '\r\n') # fix -e flag
if [ ${#option} -gt 0 ] if [ ${#option} -gt 0 ]
then then
@ -18,7 +18,7 @@ then
Lock) Lock)
$LOCKER $LOCKER
;; ;;
Power-off) Shutdown)
systemctl poweroff systemctl poweroff
;; ;;
Exit) Exit)