wallpaper palettes

This commit is contained in:
Daniel Napora 2022-05-24 19:32:53 +02:00
parent 2535bfcd83
commit c62a7a82ee
4 changed files with 17 additions and 13 deletions

View File

@ -18,12 +18,12 @@ case "$LANG" in
DISABLE="Wyłącz powiadomienia" DISABLE="Wyłącz powiadomienia"
;; ;;
es*) es*)
AVAIL_UPDATES="Available updates" AVAIL_UPDATES="Actualizaciones disponibles"
UPTODATE="System is up to date" UPTODATE="El sistema esta actualizado"
PKGS_TO_UPDATE="Packages to update:" PKGS_TO_UPDATE="Paquetes para actualizar:"
YAY_UPD="Update with yay (cli)" YAY_UPD="Actualizar con yay (cli)"
PAMAC_UPD="Update with Pamac (GUI)" PAMAC_UPD="Actualizar con Pamac (GUI)"
DISABLE="Disable notifications" DISABLE="Deshabilitar notificaciones"
;; ;;
*) *)
AVAIL_UPDATES="Available updates" AVAIL_UPDATES="Available updates"

View File

@ -9,11 +9,11 @@ out+=("CONKY,^pipe(colorizer-conky)")
out+=("Terminal color scheme,^term(theme.sh -i2;/bin/bash)") out+=("Terminal color scheme,^term(theme.sh -i2;/bin/bash)")
#out+=("GTKTHEME,^pipe(colorizer-gtktheme)") #out+=("GTKTHEME,^pipe(colorizer-gtktheme)")
out+=("^sep(OTHER_TOOLS)") out+=("^sep(OTHER_TOOLS)")
out+=("WALLPAPER,^pipe(jgwallpaperchanger)") out+=("Wallpaper,^pipe(jgwallpaperchanger)")
out+=("MBX Colors,mbxcolors") out+=("Color Menu,mbxcolors")
out+=("^sep()") out+=("^sep()")
#out+=("PREFERENCES") #out+=("PREFERENCES")
out+=("ABOUT and Help,yhtml /usr/share/mabox-colorizer/help/en.html 'Mabox Colorizer'") out+=("About and Help,yhtml /usr/share/mabox-colorizer/help/en.html 'Mabox Colorizer'")
### RUN ### RUN
if [[ "$1" == "-s" ]]; then if [[ "$1" == "-s" ]]; then

View File

@ -128,8 +128,11 @@ if pgrep -af "conky.*mbcolor" >/dev/null; then
fi fi
fi fi
fi fi
out+=("^sep(RESET)")
#out+=("RESET") out+=("Reset all to defaults,^checkout(resetall)")
out2+=("^tag(resetall)")
out2+=("^sep(Are you sure?)")
out2+=("Yes,rm $BASECONKY;$me")
else else
out+=("^sep(No supported Conky running)") out+=("^sep(No supported Conky running)")
@ -190,7 +193,8 @@ cat <<EOF > ${MENU_ITEMS}
@icon,,$((jgtools_padding + 4)),$((jgtools_padding + 4)),270,150,4,left,top,,,${THUMB} @icon,,$((jgtools_padding + 4)),$((jgtools_padding + 4)),270,150,4,left,top,,,${THUMB}
#@icon,,$((jgtools_padding + 4)),$((jgtools_padding + 4)),270,150,4,left,top,,,/usr/share/mabox-colorizer/img/colorizer-conky.png #@icon,,$((jgtools_padding + 4)),$((jgtools_padding + 4)),270,150,4,left,top,,,/usr/share/mabox-colorizer/img/colorizer-conky.png
@rect,,$((jgtools_padding + 244)),$((jgtools_padding + 6)),29,60,0,left,top,#FFFFFF 30,${WINCLR} 60, @rect,,$((jgtools_padding + 244)),$((jgtools_padding + 6)),29,60,0,left,top,#FFFFFF 30,${WINCLR} 60,
@rect,,$((jgtools_padding + 5)),$((jgtools_padding + 82)),29,40,0,left,top,#FFFFFF 30,${WINCLR} 60, @rect,,$((jgtools_padding + 5)),$((jgtools_padding + 92)),29,60,0,left,top,#FFFFFF 30,${WINCLR} 60,
@rect,,$((jgtools_padding + 36)),$((jgtools_padding + 112)),29,40,0,left,top,#FFFFFF 30,${WINCLR} 60,
$(printf '%s\n' "${out[@]}") $(printf '%s\n' "${out[@]}")
$(printf '%s\n' "${out2[@]}") $(printf '%s\n' "${out2[@]}")
EOF EOF

View File

@ -10,7 +10,7 @@ mkdir -p "$WALLPALDIR"
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2) read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
WALLPAPER=${WALLPATH##*/} WALLPAPER=${WALLPATH##*/}
if [ ! -f "$WALLPALDIR/$WALLPAPER.clr" ]; then if [ ! -f "$WALLPALDIR/$WALLPAPER.clr" ]; then
convert ${WALLPATH} -resize 25% -colors 16 -unique-colors txt:- |grep -v '^#'| awk '{print $3}' |pastel sort-by brightness |pastel format hex > "$WALLPALDIR/$WALLPAPER.clr" convert ${WALLPATH} -resize 25% -colors 16 -unique-colors txt:- |grep -v '^#'| awk '{print substr($3,1,7)}' |pastel sort-by brightness |pastel format hex > "$WALLPALDIR/$WALLPAPER.clr"
fi fi
mapfile -t wallcolors < "$WALLPALDIR/$WALLPAPER.clr" mapfile -t wallcolors < "$WALLPALDIR/$WALLPAPER.clr"