summaryrefslogtreecommitdiffstats
path: root/.local/bin/power.sh
diff options
context:
space:
mode:
authorYigit Sever2021-11-07 23:42:15 +0300
committerYigit Sever2021-11-07 23:42:15 +0300
commit9fa9973c2d2f91cef7bdd26cb52064c13f4d682e (patch)
tree13aa64b09bc91e16f3dd3217bf3d647559af2cf9 /.local/bin/power.sh
parent9382166b5522a5d9e2d62e93e702b4d0886cedb4 (diff)
parentfcb2237c01bcd2b7982bb844cea4cf9447f20d03 (diff)
downloaddotfiles-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.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