summaryrefslogtreecommitdiff
path: root/.i3lock
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-06-08 19:31:48 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-06-08 19:31:48 +0300
commit575a7b941425123f8d011f339bacb3f8606f336c (patch)
treebae52b58f272e185578a59326a076821e999c1a6 /.i3lock
parent80fa59af233574ae24eb58f7209918beda695e53 (diff)
downloaddotfiles-575a7b941425123f8d011f339bacb3f8606f336c.tar
dotfiles-575a7b941425123f8d011f339bacb3f8606f336c.tar.gz
dotfiles-575a7b941425123f8d011f339bacb3f8606f336c.zip
Updated gitignore settings for some apps
Diffstat (limited to '.i3lock')
-rwxr-xr-x.i3lock/lock.sh11
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