diff options
| 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 |
| commit | 575a7b941425123f8d011f339bacb3f8606f336c (patch) | |
| tree | bae52b58f272e185578a59326a076821e999c1a6 /.i3lock | |
| parent | 80fa59af233574ae24eb58f7209918beda695e53 (diff) | |
| download | dotfiles-575a7b941425123f8d011f339bacb3f8606f336c.tar dotfiles-575a7b941425123f8d011f339bacb3f8606f336c.tar.gz dotfiles-575a7b941425123f8d011f339bacb3f8606f336c.zip | |
Updated gitignore settings for some apps
Diffstat (limited to '.i3lock')
| -rwxr-xr-x | .i3lock/lock.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
