From 5ed4e53133487af32c1cc25ac1282f9fdc83540f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 8 Oct 2021 07:40:25 +0300 Subject: Fixed trying to lock when screen is already locked (and this starts showing notifications on lock screen) --- .i3lock/lock.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.i3lock') diff --git a/.i3lock/lock.sh b/.i3lock/lock.sh index 3ef2a05..9379008 100755 --- a/.i3lock/lock.sh +++ b/.i3lock/lock.sh @@ -1,5 +1,9 @@ #!/bin/bash +if pgrep i3lock 1>&2; then + exit +fi + res () { pkill $@ nohup $@ 2>&1 & -- cgit v1.2.3