diff options
Diffstat (limited to '.local/bin/power.sh')
-rwxr-xr-x | .local/bin/power.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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) | |||
15 | # Info about some states are available here: | 15 | # Info about some states are available here: |
16 | # https://www.freedesktop.org/software/systemd/man/systemd-sleep.conf.html#Description | 16 | # https://www.freedesktop.org/software/systemd/man/systemd-sleep.conf.html#Description |
17 | 17 | ||
18 | if [[ $chosen = "lock" ]]; then | 18 | if [[ $chosen == "lock" ]]; then |
19 | $HOME/.local/bin/lock | 19 | "$HOME"/.local/bin/lock |
20 | elif [[ $chosen = "shutdown" ]]; then | 20 | elif [[ $chosen == "shutdown" ]]; then |
21 | systemctl poweroff | 21 | systemctl poweroff |
22 | elif [[ $chosen = "restart" ]]; then | 22 | elif [[ $chosen == "restart" ]]; then |
23 | systemctl reboot | 23 | systemctl reboot |
24 | fi | 24 | fi |