From d21e038f85a403875879e102077c97bb45c92302 Mon Sep 17 00:00:00 2001 From: Jens Sauer Date: Tue, 22 Oct 2019 23:38:03 +0200 Subject: [PATCH] Change method to get lock screen resolution Since the lock screen overlay is installed as a symbolic link, 'file' did not longer work to get the resolution of the overlay. With 'identify' as a replacement this is now working again. --- i3/.local/bin/lock.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/i3/.local/bin/lock.sh b/i3/.local/bin/lock.sh index c7457f4..790ebf9 100755 --- a/i3/.local/bin/lock.sh +++ b/i3/.local/bin/lock.sh @@ -9,9 +9,9 @@ EFFECT='boxblur=5:1' PX=0 PY=0 # lockscreen image info -R=$(file $LOCKSCREEN | grep -o '[0-9]* x [0-9]*') -RX=$(echo $R | cut -d' ' -f 1) -RY=$(echo $R | cut -d' ' -f 3) +R=$(identify $LOCKSCREEN | grep -o '[0-9]*x[0-9]*' | head -1) +RX=$(echo $R | cut -d'x' -f 1) +RY=$(echo $R | cut -d'x' -f 2) OVERLAY='' INPUT=''