diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-10-08 07:40:25 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-10-08 07:40:25 +0300 |
| commit | 5ed4e53133487af32c1cc25ac1282f9fdc83540f (patch) | |
| tree | 8cd71d8cf65b2df27a05b53acb6288f9b2c8df22 | |
| parent | 32599686ee2953d2a0f1c0afdadfacf9218885af (diff) | |
| download | dotfiles-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)
| -rwxr-xr-x | .i3lock/lock.sh | 4 |
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 & |
