diff options
-rwxr-xr-x | .local/bin/lock | 7 | ||||
-rwxr-xr-x | .local/bin/power.sh | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.local/bin/lock b/.local/bin/lock new file mode 100755 index 0000000..d76f636 --- /dev/null +++ b/.local/bin/lock | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | pkill -u "$USER" -USR1 dunst | ||
4 | |||
5 | i3lock -n | ||
6 | |||
7 | pkill -u "$USER" -USR2 dunst | ||
diff --git a/.local/bin/power.sh b/.local/bin/power.sh index 4a5de69..f794211 100755 --- a/.local/bin/power.sh +++ b/.local/bin/power.sh | |||
@@ -16,7 +16,7 @@ chosen=$(echo -e "lock\nshutdown\nrestart" | rofi -dmenu -i) | |||
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 | i3lock | 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 |