Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use relative paths to load icons. #195

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions i3lock-fancy
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Author: Dolores Portalatin <[email protected]>
# Dependencies: imagemagick, i3lock-color-git, scrot, wmctrl (optional)
set -o errexit -o noclobber -o nounset
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"

hue=(-level "0%,100%,0.6")
effect=(-filter Gaussian -resize 20% -define "filter:sigma=1.5" -resize 500.5%)
Expand Down Expand Up @@ -103,7 +104,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="$SCRIPTPATH/../share/i3lock-fancy/icons/lockdark.png"
param=("--inside-color=0000001c" "--ring-color=0000003e" \
"--line-color=00000000" "--keyhl-color=ffffff80" "--ringver-color=ffffff00" \
"--separator-color=22222260" "--insidever-color=ffffff1c" \
Expand All @@ -112,7 +113,7 @@ if [[ $color -gt $value ]]; then #white background image and black text
"--date-color=ffffff00" "--layout-color=ffffff00")
else #black
bw="white"
icon="/usr/share/i3lock-fancy/icons/lock.png"
icon="$SCRIPTPATH/../share/i3lock-fancy/icons/lock.png"
param=("--inside-color=ffffff1c" "--ring-color=ffffff3e" \
"--line-color=ffffff00" "--keyhl-color=00000080" "--ringver-color=00000000" \
"--separator-color=22222260" "--insidever-color=0000001c" \
Expand Down