Skip to content

Commit

Permalink
i3lock-fancy: quick workaround to overcome PREFIX
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Durand Wesolowski <jwesolowski@ad.commsolid.com>
  • Loading branch information
Jimmy Durand Wesolowski committed Jan 31, 2020
1 parent 1734f77 commit bf78dfb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions i3lock-fancy
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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" \
Expand All @@ -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" \
Expand Down

0 comments on commit bf78dfb

Please sign in to comment.