summaryrefslogtreecommitdiff
path: root/.i3lock
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-07-13 08:03:24 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-07-13 08:03:24 +0300
commitfe723fc329e288eb784ca17269931dbc853e971c (patch)
tree222746fe7f50678d072d3bf26693137530803c85 /.i3lock
parent733ac90b0fa50100899eb3c1bbb13ebe3ce1dd01 (diff)
downloaddotfiles-fe723fc329e288eb784ca17269931dbc853e971c.tar
dotfiles-fe723fc329e288eb784ca17269931dbc853e971c.tar.gz
dotfiles-fe723fc329e288eb784ca17269931dbc853e971c.zip
Temporary fix for lock script audio popup screen
Diffstat (limited to '.i3lock')
-rwxr-xr-x.i3lock/lock.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.i3lock/lock.sh b/.i3lock/lock.sh
index de79aa1..029ff01 100755
--- a/.i3lock/lock.sh
+++ b/.i3lock/lock.sh
@@ -25,7 +25,7 @@ fi
# Show an error message if user is trying to suspend, while audio is playing, because that can mess up sound servers
# It tries to send a message via zenity, xmessage or notify-send, depending on which is installed
# but it always sends a text message to stdout. In the end, script execution is stopped.
-if [ $(grep -r 'RUNNING' /proc/asound | wc -l) -ne 0 ] && [[ "$1" == 'suspend' ]]; then
+if [ $(grep -r 'RUNNING' /proc/asound | wc -l) -gt 1 ] && [[ "$1" == 'suspend' ]]; then
message='Please, stop all playing audio before trying to suspend!'
if [ -x "$(command -v zenity)" ]; then