From a0bb023d782dd2d8703670d560b5ccd8d25d640e Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 4 Nov 2021 12:25:04 +0300 Subject: bins: shfmt, weasel suite, spark --- .local/bin/power.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.local/bin/power.sh') diff --git a/.local/bin/power.sh b/.local/bin/power.sh index f794211..2dd7e5d 100755 --- a/.local/bin/power.sh +++ b/.local/bin/power.sh @@ -15,10 +15,10 @@ chosen=$(echo -e "lock\nshutdown\nrestart" | rofi -dmenu -i) # Info about some states are available here: # https://www.freedesktop.org/software/systemd/man/systemd-sleep.conf.html#Description -if [[ $chosen = "lock" ]]; then - $HOME/.local/bin/lock -elif [[ $chosen = "shutdown" ]]; then +if [[ $chosen == "lock" ]]; then + "$HOME"/.local/bin/lock +elif [[ $chosen == "shutdown" ]]; then systemctl poweroff -elif [[ $chosen = "restart" ]]; then +elif [[ $chosen == "restart" ]]; then systemctl reboot fi -- cgit v1.2.3-70-g09d2