From 12f5fa5fc76ea1dfb9b3c288e5d38f716a9667db Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 1 Jul 2021 12:54:02 +0300 Subject: Fixed lock script message command checking --- .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 ad13822..4c84a1c 100755 --- a/.i3lock/lock.sh +++ b/.i3lock/lock.sh @@ -30,7 +30,7 @@ if [ $(grep -r 'RUNNING' /proc/asound | wc -l) -ne 0 ] && [[ "$1" == 'suspend' ] if [ -x "$(command -v zenity)" ]; then zenity --error --no-wrap --text="$message" - elif [ -x "$(command -v zenity)" ]; then + elif [ -x "$(command -v xmessage)" ]; then xmessage -center "$message" elif [ -x "$(command -v notify-send)" ]; then notify-send -u critical "$message" -- cgit v1.2.3