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.
This commit is contained in:
parent
403e05a6ec
commit
d21e038f85
@ -9,9 +9,9 @@ EFFECT='boxblur=5:1'
|
|||||||
PX=0
|
PX=0
|
||||||
PY=0
|
PY=0
|
||||||
# lockscreen image info
|
# lockscreen image info
|
||||||
R=$(file $LOCKSCREEN | grep -o '[0-9]* x [0-9]*')
|
R=$(identify $LOCKSCREEN | grep -o '[0-9]*x[0-9]*' | head -1)
|
||||||
RX=$(echo $R | cut -d' ' -f 1)
|
RX=$(echo $R | cut -d'x' -f 1)
|
||||||
RY=$(echo $R | cut -d' ' -f 3)
|
RY=$(echo $R | cut -d'x' -f 2)
|
||||||
|
|
||||||
OVERLAY=''
|
OVERLAY=''
|
||||||
INPUT=''
|
INPUT=''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user