diff options
author | Yigit Sever | 2021-11-07 23:42:15 +0300 |
---|---|---|
committer | Yigit Sever | 2021-11-07 23:42:15 +0300 |
commit | 9fa9973c2d2f91cef7bdd26cb52064c13f4d682e (patch) | |
tree | 13aa64b09bc91e16f3dd3217bf3d647559af2cf9 /.local/bin/power.sh | |
parent | 9382166b5522a5d9e2d62e93e702b4d0886cedb4 (diff) | |
parent | fcb2237c01bcd2b7982bb844cea4cf9447f20d03 (diff) | |
download | dotfiles-9fa9973c2d2f91cef7bdd26cb52064c13f4d682e.tar.gz dotfiles-9fa9973c2d2f91cef7bdd26cb52064c13f4d682e.tar.bz2 dotfiles-9fa9973c2d2f91cef7bdd26cb52064c13f4d682e.zip |
Merge remote-tracking branch 'origin/main'
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 |