This commit is contained in:
2026-04-27 09:30:34 +02:00
parent 2c146e4690
commit f539918828
4 changed files with 103 additions and 5 deletions

View File

@@ -24,9 +24,7 @@ else
exit $?
fi
if [[ "$wall2themes" == "yes" ]];then
notify-send.sh -t 5000 -i ~/.config/mabox/wpicon_wide.png --replace-file=/tmp/colorize_notid "Mabox Auto theming in progress..." "\n\nPlease wait... a few seconds...\n\n"
fi
ARGS="$*"
#notify-send.sh "All ARGS" "\n\n$ARGS"
@@ -101,6 +99,31 @@ fi
cat "$WALLPALDIR/${NAME}.clr" > "$HOME/.config/mabox/wpcolors.clr"
readarray -t w < "$HOME/.config/mabox/wpcolors.clr"
cat <<EOF > "$HOME/.config/mabox/wpcolors.svg"
<svg xmlns="http://www.w3.org/2000/svg" width="272" height="270">
<defs>
<filter id="f1">
<feDropShadow dx="2" dy="2" stdDeviation="1" flood-opacity="0.6"/>
</filter>
</defs>
<rect x="0" y="0" width="270" height="150" fill="#EEE" filter="url(#f1)" />
<rect x="1" y="156" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[0]}" filter="url(#f1)" />
<rect x="70" y="156" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[1]}" filter="url(#f1)" />
<rect x="139" y="156" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[2]}" filter="url(#f1)" />
<rect x="208" y="156" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[3]}" filter="url(#f1)" />
<rect x="1" y="196" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[4]}" filter="url(#f1)" />
<rect x="70" y="196" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[5]}" filter="url(#f1)" />
<rect x="139" y="196" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[6]}" filter="url(#f1)" />
<rect x="208" y="196" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[-5]}" filter="url(#f1)" />
<rect x="1" y="235" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[-4]}" filter="url(#f1)" />
<rect x="70" y="235" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[-3]}" filter="url(#f1)" />
<rect x="139" y="235" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[-2]}" filter="url(#f1)" />
<rect x="208" y="235" width="61" height="33" stroke="#DDD" stroke-width="2" fill="${w[-1]}" filter="url(#f1)" />
</svg>
EOF
# GENERATE THUMBNAIL
THUMBDIR="$HOME/.cache/colorizer/thumbs"
mkdir -p ${THUMBDIR}