summaryrefslogtreecommitdiff
path: root/.i3lock/lock.sh
blob: 62e39259ea8c3f5e2fd6ac21c37dea9b7ae859e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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