betterlockscreen: fix lock resolution not being used (#66)

Due to recent changes, the resolution option's output was never
used. Fix that by setting a current directory in order to always use
the intended resolution.
This commit is contained in:
Thomas Magalhaes 2018-06-19 19:23:27 +02:00 committed by Pavan Jadhaw
parent 864d00eec3
commit 2753996e88

View file

@ -11,7 +11,14 @@ init_filenames() {
#$1 resolution
# create folder in ~/.cache/i3lock directory
folder="$HOME/.cache/i3lock/$1"
res_folder="$HOME/.cache/i3lock/$1"
folder="$HOME/.cache/i3lock/current"
echo "Got" $@ $res_folder
if [ ! -d $folder -o -n "$2" ]
then
rm $folder
ln -s $res_folder $folder
fi
# ratio for rectangle to be drawn for time background on lockscreen
# Original Image
@ -253,7 +260,7 @@ case "$1" in
case "$1" in
-r | --resolution )
res="$2"
init_filenames $res
init_filenames $res force
shift 2
;;
-b | --blur )