summaryrefslogtreecommitdiff
path: root/.i3lock/lock.sh
diff options
context:
space:
mode:
Diffstat (limited to '.i3lock/lock.sh')
-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