summaryrefslogtreecommitdiff
path: root/.i3lock
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-10-08 07:40:25 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-10-08 07:40:25 +0300
commit5ed4e53133487af32c1cc25ac1282f9fdc83540f (patch)
tree8cd71d8cf65b2df27a05b53acb6288f9b2c8df22 /.i3lock
parent32599686ee2953d2a0f1c0afdadfacf9218885af (diff)
downloaddotfiles-5ed4e53133487af32c1cc25ac1282f9fdc83540f.tar
dotfiles-5ed4e53133487af32c1cc25ac1282f9fdc83540f.tar.gz
dotfiles-5ed4e53133487af32c1cc25ac1282f9fdc83540f.zip
Fixed trying to lock when screen is already locked (and this starts showing notifications on lock screen)
Diffstat (limited to '.i3lock')
-rwxr-xr-x.i3lock/lock.sh4
1 files changed, 4 insertions, 0 deletions
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 &