diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-07-13 08:03:24 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-07-13 08:03:24 +0300 |
| commit | fe723fc329e288eb784ca17269931dbc853e971c (patch) | |
| tree | 222746fe7f50678d072d3bf26693137530803c85 | |
| parent | 733ac90b0fa50100899eb3c1bbb13ebe3ce1dd01 (diff) | |
| download | dotfiles-fe723fc329e288eb784ca17269931dbc853e971c.tar dotfiles-fe723fc329e288eb784ca17269931dbc853e971c.tar.gz dotfiles-fe723fc329e288eb784ca17269931dbc853e971c.zip | |
Temporary fix for lock script audio popup screen
| -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 |
