diff options
| Commit | 575a7b941425123f8d011f339bacb3f8606f336c (patch ) | |
|---|---|---|
| Author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-06-08 19:31:48 +0300 |
| Committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-06-08 19:31:48 +0300 |
| Files | bae52b58f272e185578a59326a076821e999c1a6 /.i3lock/lock.sh | |
| dotfiles-575a7b941425123f8d011f339bacb3f8606f336c.tar dotfiles-575a7b941425123f8d011f339bacb3f8606f336c.tar.gz dotfiles-575a7b941425123f8d011f339bacb3f8606f336c.zip | ||
| Parent | 80fa59af233574ae24eb58f7209918beda695e53 (diff) | |
Updated gitignore settings for some apps
1 files changed, 11 insertions, 0 deletions
| -rwxr-xr-x | .i3lock/lock.sh | 11 |
diff --git a/.i3lock/lock.sh b/.i3lock/lock.sh new file mode 100755 index 0000000..62e3925 --- /dev/null +++ b/.i3lock/lock.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ $(grep -r "RUNNING" /proc/asound | wc -l) -eq 0 ] || [[ $# -ne 0 ]]; then + # Also disables and enables dunst, my notification daemon + # https://github.com/dunst-project/dunst/issues/697 + # https://wiki.archlinux.org/title/Dunst#Disable_dunst_temporarily + + killall -SIGUSR1 dunst + i3lock -f -c d49408 -i /home/kamen/.i3lock/lockscreen.png -n + killall -SIGUSR2 dunst +fi |
