summaryrefslogtreecommitdiffstats
path: root/.local/bin/power.sh
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/power.sh')
-rwxr-xr-x.local/bin/power.sh8
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
18if [[ $chosen = "lock" ]]; then 18if [[ $chosen == "lock" ]]; then
19 $HOME/.local/bin/lock 19 "$HOME"/.local/bin/lock
20elif [[ $chosen = "shutdown" ]]; then 20elif [[ $chosen == "shutdown" ]]; then
21 systemctl poweroff 21 systemctl poweroff
22elif [[ $chosen = "restart" ]]; then 22elif [[ $chosen == "restart" ]]; then
23 systemctl reboot 23 systemctl reboot
24fi 24fi