diff options
Diffstat (limited to '.i3lock/lock.sh')
| -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 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 |
