diff --git a/local/bin/fehbg b/local/bin/fehbg index 25e5ad7..29e724c 100755 --- a/local/bin/fehbg +++ b/local/bin/fehbg @@ -98,7 +98,7 @@ if [ ! -f "$WALLPALDIR/${NAME}.clr" ]; then magick ${WALLPATH} -resize 25% -colors 12 -unique-colors txt:- |grep -v '^#'| awk '{print substr($3,1,7)}' |pastel sort-by brightness |pastel format hex > "$WALLPALDIR/$NAME.clr" fi fi - +## kolory tapety do pliku wpcolors.clr cat "$WALLPALDIR/${NAME}.clr" > "$HOME/.config/mabox/wpcolors.clr" @@ -107,7 +107,11 @@ THUMBDIR="$HOME/.cache/colorizer/thumbs" mkdir -p ${THUMBDIR} THUMB="${THUMBDIR}/${NAME}.png" if [[ ! -f "$THUMB" ]]; then -magick ${WALLPATH} -resize 270x150^ -gravity center -extent 266x146 -bordercolor '#DDDDDD' -border 2 ${THUMB} + magick ${WALLPATH} -resize 270x150^ -gravity center -extent 266x146 -bordercolor '#DDDDDD' -border 2 ${THUMB} + + cp ${THUMB} "$HOME/.config/mabox/wpthumb.png" +else + cp ${THUMB} "$HOME/.config/mabox/wpthumb.png" fi diff --git a/local/bin/nitrogen b/local/bin/nitrogen index b39c05b..ed4918e 100755 --- a/local/bin/nitrogen +++ b/local/bin/nitrogen @@ -106,7 +106,11 @@ THUMBDIR="$HOME/.cache/colorizer/thumbs" mkdir -p ${THUMBDIR} THUMB="${THUMBDIR}/${NAME}.png" if [[ ! -f "$THUMB" ]]; then -magick ${WALLPATH} -resize 270x150^ -gravity center -extent 266x146 -bordercolor '#DDDDDD' -border 2 ${THUMB} + magick ${WALLPATH} -resize 270x150^ -gravity center -extent 266x146 -bordercolor '#DDDDDD' -border 2 ${THUMB} + + cp ${THUMB} "$HOME/.config/mabox/wpthumb.png" +else + cp ${THUMB} "$HOME/.config/mabox/wpthumb.png" fi