From 211a13c697e2cb34d276095c8a11a9d98cc46fbb Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 1 Jul 2021 10:51:03 +0300 Subject: Fixed zenity being always skipped in lock script error message --- .i3lock/lock.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.i3lock') 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" -- cgit v1.2.3