diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-08-29 16:13:45 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-08-29 16:13:45 +0300 |
| commit | 809cac0470023b8f5c9dc918990af5bb7f06f15e (patch) | |
| tree | 44d000630973c7d928e6a622f39c9924bd391146 | |
| parent | c2f945fc4e6a055b8b6a7df39b9a913f51f185c7 (diff) | |
| download | dotfiles-809cac0470023b8f5c9dc918990af5bb7f06f15e.tar dotfiles-809cac0470023b8f5c9dc918990af5bb7f06f15e.tar.gz dotfiles-809cac0470023b8f5c9dc918990af5bb7f06f15e.zip | |
Fixed lock logic
| -rwxr-xr-x | .i3lock/lock.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.i3lock/lock.sh b/.i3lock/lock.sh index c6d91f2..3ee73d6 100755 --- a/.i3lock/lock.sh +++ b/.i3lock/lock.sh @@ -18,7 +18,7 @@ when_unlocked_after_suspend () { # This makes sure to not lock the screen if audio is playing and there are no arguments given # It's mainly for preventing automatic screen locking while a video/music is playing # If you still want to lock, just give it some argument, doesn't matter what -if [ $(grep -r 'RUNNING' /proc/asound | wc -l) -ne 0 ] && [[ $# -eq 0 ]]; then +if [ $(grep -r 'RUNNING' /proc/asound | wc -l) -lt 2 ] && [ $# -eq 0 ]; then exit fi |
