summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-07-02 16:18:05 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-07-02 16:18:05 +0300
commit0aa0e240dad413131bd51ee7169d12e3d46fcfa1 (patch)
tree502b3e878d1cf5bf0cf0c44adf8917eff815b9f6
parent12f5fa5fc76ea1dfb9b3c288e5d38f716a9667db (diff)
downloaddotfiles-0aa0e240dad413131bd51ee7169d12e3d46fcfa1.tar
dotfiles-0aa0e240dad413131bd51ee7169d12e3d46fcfa1.tar.gz
dotfiles-0aa0e240dad413131bd51ee7169d12e3d46fcfa1.zip
Fixed lock script locking when audio is playing with no arguments given
-rwxr-xr-x.i3lock/lock.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.i3lock/lock.sh b/.i3lock/lock.sh
index 4c84a1c..de79aa1 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 ] && [[ $# -ne 0 ]]; then
+if [ $(grep -r 'RUNNING' /proc/asound | wc -l) -ne 0 ] && [[ $# -eq 0 ]]; then
exit
fi