X-Git-Url: https://git.draconx.ca/gitweb/fvwmconf.git/blobdiff_plain/d1f3a29400d3aa897bc13d3282e1798f3cd9e082..f6d26fa7bcdcbe82081219a9ed482e674085ab6b:/scripts/thumbnail.zsh diff --git a/scripts/thumbnail.zsh b/scripts/thumbnail.zsh index a967803..62294b6 100755 --- a/scripts/thumbnail.zsh +++ b/scripts/thumbnail.zsh @@ -1,6 +1,9 @@ #!/bin/zsh -music=/stuff/music +if [[ -z "$MUSIC" ]]; then + MUSIC=/home/music +fi + thumbs="$HOME/.fvwm/.thumbs" if ! [[ -d "$thumbs" ]]; then @@ -40,7 +43,7 @@ if [[ -z "$1" ]]; then fi if [[ -n "$ismusic" ]]; then - imgpath="$music/$(dirname "${1#$music}")/cover.jpg" + imgpath="$MUSIC/$(dirname "${1#$MUSIC}")/cover.jpg" [[ ! -f "$imgpath" ]] && imgpath="${imgpath%jpg}png" else imgpath="$1"