From bf78dfbe1c4667e5e5b20ea35fc3176102da6ed7 Mon Sep 17 00:00:00 2001 From: Jimmy Durand Wesolowski Date: Fri, 31 Jan 2020 18:29:06 +0100 Subject: [PATCH] i3lock-fancy: quick workaround to overcome PREFIX Signed-off-by: Jimmy Durand Wesolowski --- i3lock-fancy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/i3lock-fancy b/i3lock-fancy index 6bd1628..caf43e6 100755 --- a/i3lock-fancy +++ b/i3lock-fancy @@ -12,6 +12,7 @@ shot=(import -window root) desktop="" i3lock_cmd=(i3lock -i "$image") shot_custom=false +SHRDIR=$(realpath $(dirname $0)/../share) options="Options: -h, --help This help menu. @@ -100,7 +101,7 @@ color=$(convert "$image" -gravity center -crop 100x100+0+0 +repage -colorspace h if [[ $color -gt $value ]]; then #white background image and black text bw="black" - icon="/usr/share/i3lock-fancy/icons/lockdark.png" + icon="${SHRDIR}/i3lock-fancy/icons/lockdark.png" param=("--insidecolor=0000001c" "--ringcolor=0000003e" \ "--linecolor=00000000" "--keyhlcolor=ffffff80" "--ringvercolor=ffffff00" \ "--separatorcolor=22222260" "--insidevercolor=ffffff1c" \ @@ -109,7 +110,7 @@ if [[ $color -gt $value ]]; then #white background image and black text "--datecolor=ffffff00" "--layoutcolor=ffffff00") else #black bw="white" - icon="/usr/share/i3lock-fancy/icons/lock.png" + icon="${SHRDIR}/i3lock-fancy/icons/lock.png" param=("--insidecolor=ffffff1c" "--ringcolor=ffffff3e" \ "--linecolor=ffffff00" "--keyhlcolor=00000080" "--ringvercolor=00000000" \ "--separatorcolor=22222260" "--insidevercolor=0000001c" \