diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-07-01 10:51:03 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-07-01 10:51:03 +0300 |
| commit | 211a13c697e2cb34d276095c8a11a9d98cc46fbb (patch) | |
| tree | 69b18444c54290d62427c0229b38630c5fa80722 | |
| parent | ae51ab3065c09cc140d29d7b4925473135b037e0 (diff) | |
| download | dotfiles-211a13c697e2cb34d276095c8a11a9d98cc46fbb.tar dotfiles-211a13c697e2cb34d276095c8a11a9d98cc46fbb.tar.gz dotfiles-211a13c697e2cb34d276095c8a11a9d98cc46fbb.zip | |
Fixed zenity being always skipped in lock script error message
| -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 76a0ec5..57c3feb 100755 --- a/.i3lock/lock.sh +++ b/.i3lock/lock.sh @@ -21,7 +21,7 @@ when_unlocked_after_suspend () { if [ $(grep -r "RUNNING" /proc/asound | wc -l) -ne 0 ] && [[ "$1" == "suspend" ]]; then message="Please, stop all playing audio before trying to suspend!" - if ![ -x "$(command -v zenity)" ]; then + if [ -x "$(command -v zenity)" ]; then zenity --error --no-wrap --text="$message" elif [ -x "$(command -v zenity)" ]; then xmessage -center "$message" |
