mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-12-28 03:02:52 +00:00
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:
parent
864d00eec3
commit
2753996e88
1 changed files with 9 additions and 2 deletions
|
@ -11,7 +11,14 @@ init_filenames() {
|
||||||
#$1 resolution
|
#$1 resolution
|
||||||
|
|
||||||
# create folder in ~/.cache/i3lock directory
|
# 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
|
# ratio for rectangle to be drawn for time background on lockscreen
|
||||||
# Original Image
|
# Original Image
|
||||||
|
@ -253,7 +260,7 @@ case "$1" in
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-r | --resolution )
|
-r | --resolution )
|
||||||
res="$2"
|
res="$2"
|
||||||
init_filenames $res
|
init_filenames $res force
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
-b | --blur )
|
-b | --blur )
|
||||||
|
|
Loading…
Reference in a new issue