From 7093630d545e7e4b74f8f3ee39b05ed3986e12b2 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Mon, 13 Apr 2026 11:33:17 +0200 Subject: [PATCH] glyphicons --- bin/colorizer | 0 bin/colorizer-menus | 140 ++++++++++++++++++------------------- bin/colorizer-ob | 163 +++++++++++++++++++------------------------- 3 files changed, 141 insertions(+), 162 deletions(-) mode change 100644 => 100755 bin/colorizer diff --git a/bin/colorizer b/bin/colorizer old mode 100644 new mode 100755 diff --git a/bin/colorizer-menus b/bin/colorizer-menus index 1734962..e4a79c7 100755 --- a/bin/colorizer-menus +++ b/bin/colorizer-menus @@ -1,7 +1,7 @@ #!/bin/bash # # colorizer - set of tools for Mabox (auto)theming -# Copyright (C) 2022-2023 Daniel Napora +# Copyright (C) 2022-2026 Daniel Napora # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -16,6 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +. /usr/share/mb-jgtools/jgtools.inc SYSSCHEMES="/usr/share/mabox-colorizer/colorschemes/menus.csv" @@ -41,17 +42,18 @@ mapfile -t w < "$WALLPALDIR/$NAME.clr" me="colorizer-menus -s" -. $HOME/.config/mabox/mabox.conf -case "$jgmenu_theme" in - obtheme) - OBTHEME=$(awk '// {while (getline n) {if (match(n, //)) - {l=n; exit}}} END {split(l, a, "[<>]"); print a[3]}' "$HOME/.config/openbox/rc.xml"); - #echo "$OBTHEME" - THEMERC="$HOME/.config/mabox/jgobthemes/${OBTHEME}.colorrc" - jgmenu_theme="$OBTHEME";; #only to show real theme name in menu - *) - THEMERC="$HOME/.config/mabox/jgobthemes/${jgmenu_theme}.colorrc";; -esac +#. $HOME/.config/mabox/mabox.conf +#case "$jgmenu_theme" in +# obtheme) +# OBTHEME=$(awk '// {while (getline n) {if (match(n, //)) +# {l=n; exit}}} END {split(l, a, "[<>]"); print a[3]}' "$HOME/.config/openbox/rc.xml"); +# #echo "$OBTHEME" +# THEMERC="$HOME/.config/mabox/jgobthemes/${OBTHEME}.colorrc" +# jgmenu_theme="$OBTHEME";; #only to show real theme name in menu +# *) +# THEMERC="$HOME/.config/mabox/jgobthemes/${jgmenu_theme}.colorrc";; +#esac +THEMERC="$HOME/.config/mabox/jgobthemes/MBcolors.colorrc" GRADIENT_FILE="$HOME"/.config/colorizer/gradients_menu.inc @@ -291,19 +293,19 @@ out+=(" $QUICK_TWEAKS,^checkout(tweaks)") out3+=("^tag(mborder)") out3+=("^sep($BORDER)") - for i in 0 1 2 3 4 5 6 8 10 12; do [[ "$jgtools_border" == $i ]] && out3+=(" $(printf "%3s,%s" "$i" "jgctl border ${i}")") || out3+=(" $(printf "%3s,%s" "$i" "jgctl border ${i}")");done + for i in 0 1 2 3 4 5 6 8 10 12; do [[ "$jgtools_border" == $i ]] && out3+=("${ron} $(printf "%3s,%s" "$i" "jgctl border ${i}")") || out3+=("${roff} $(printf "%3s,%s" "$i" "jgctl border ${i}")");done out3+=("^tag(mpadding)") out3+=("^sep($PADDING)") - for i in 0 2 4 6 8 10 12 14 16 18 20 22 24 28 32 40; do [[ "$jgtools_padding" == $i ]] && out3+=(" $(printf "%3s,%s" "$i" "jgctl padding ${i}")") || out3+=(" $(printf "%3s,%s" "$i" "jgctl padding ${i}")");done + for i in 0 2 4 6 8 10 12 14 16 18 20 22 24 28 32 40; do [[ "$jgtools_padding" == $i ]] && out3+=("${ron} $(printf "%3s,%s" "$i" "jgctl padding ${i}")") || out3+=("${roff} $(printf "%3s,%s" "$i" "jgctl padding ${i}")");done out3+=("^tag(subspacing)") out3+=("^sep($SUBSPACING)") - for i in -20 -12 -10 -8 -6 -4 -2 0 1 2 4 6 8 10 12 14 16 18 20; do [[ "$submenu_spacing" == $i ]] && out3+=(" $(printf "%4s,%s" "$i" "mb-setvar submenu_spacing=${i};$me")") || out3+=(" $(printf "%4s,%s" "$i" "mb-setvar submenu_spacing=${i};$me")");done + for i in -20 -12 -10 -8 -6 -4 -2 0 1 2 4 6 8 10 12 14 16 18 20; do [[ "$submenu_spacing" == $i ]] && out3+=("${ron} $(printf "%4s,%s" "$i" "mb-setvar submenu_spacing=${i};$me")") || out3+=("${roff} $(printf "%4s,%s" "$i" "mb-setvar submenu_spacing=${i};$me")");done out3+=("^tag(lineheight)") out3+=("^sep($LINE_HEIGHT)") - for i in 160 180 200 220 240 280 300; do [[ "$item_height_factor" == $i ]] && out3+=(" $(printf "%4s%%,%s" "$i" "mb-setvar item_height_factor=${i};$me")") || out3+=(" $(printf "%4s%%,%s" "$i" "mb-setvar item_height_factor=${i};$me")");done + for i in 160 180 200 220 240 280 300; do [[ "$item_height_factor" == $i ]] && out3+=("${ron} $(printf "%4s%%,%s" "$i" "mb-setvar item_height_factor=${i};$me")") || out3+=("${roff} $(printf "%4s%%,%s" "$i" "mb-setvar item_height_factor=${i};$me")");done out3+=("^tag(arrow)") out3+=("^sep($ARROW_STRING)") @@ -361,14 +363,14 @@ out+=(" $(printf '%-20s' "${scheme_name}") item title [ sel ] ${icon} ,jgctl applyscheme sys $n;$me") done < <(tail -n +2 "$SYSSCHEMES") @@ -383,14 +385,14 @@ out+=(" $(printf '%-20s' "${scheme_name}") item title [ sel ] ${icon} ,^checkout(sch${n})") out3+=("^tag(sch${n}") @@ -412,14 +414,14 @@ out+=("^sep()") case "$GRADIENT" in none)icon="󰄱";; - top)icon="";; - right)icon="";; - bottom)icon="";; - left)icon="";; - top_left)icon="";; - top_right)icon="";; - bottom_left)icon="";; - bottom_right)icon="";; + top)icon=" ";; + right)icon=" ";; + bottom)icon=" ";; + left)icon="";; + top_left)icon="";; + top_right)icon="";; + bottom_left)icon="";; + bottom_right)icon="";; esac out+=("$icon $GRADIENT_POS [ $icon ],^checkout(gradientpos)") @@ -464,9 +466,9 @@ out+=("$(printf '%3s' "$TBORDERA") $icon $SEP_HALIGN [ $SEPHALIGN ],^checkout(sephalign)") @@ -491,7 +493,7 @@ out+=("󰛖 $ITEM [ $menu_font_family $menu_font_size ],^che sizes=(14 13 12 11 10 9 8) for i in "${sizes[@]}" do - [[ "$menu_font_size" == "$i" ]] && out2+=(" $i px,$me") || out2+=(" $i px,mb-setvar menu_font_size=$i;$me") + [[ "$menu_font_size" == "$i" ]] && out2+=("${ron} $i px,$me") || out2+=("${roff} $i px,mb-setvar menu_font_size=$i;$me") done if [ -f "$HOME/.config/mabox/fonts.list" ];then @@ -504,7 +506,7 @@ out+=("󰛖 $ITEM [ $menu_font_family $menu_font_size ],^che if [ "${#favfonts[@]}" -gt 0 ];then out2+=("^sep($FONT_FAMILY)") for fon in "${favfonts[@]}";do - [[ "$menu_font_family" == "$fon" ]] && out2+=(" ${fon},$me") || out2+=(" ${fon},mb-setvar \"menu_font_family='${fon}'\";$me") + [[ "$menu_font_family" == "$fon" ]] && out2+=("${ron} ${fon},$me") || out2+=("${roff} ${fon},mb-setvar \"menu_font_family='${fon}'\";$me") done fi @@ -519,13 +521,13 @@ out+=("󰛖 $ITEM [ $menu_font_family $menu_font_size ],^che sizes=(14 13 12 11 10 9 8) for i in "${sizes[@]}" do - [[ "$menu_sep_font_size" == "$i" ]] && out2+=(" $i px,$me") || out2+=(" $i px,mb-setvar menu_sep_font_size=$i;$me") + [[ "$menu_sep_font_size" == "$i" ]] && out2+=("${ron} $i px,$me") || out2+=("${roff} $i px,mb-setvar menu_sep_font_size=$i;$me") done if [ "${#favfonts[@]}" -gt 0 ];then out2+=("^sep($FONT_FAMILY)") for fon in "${favfonts[@]}";do - [[ "$menu_sep_font_family" == "$fon" ]] && out2+=(" ${fon},$me") || out2+=(" ${fon},mb-setvar \"menu_sep_font_family='${fon}'\";$me") + [[ "$menu_sep_font_family" == "$fon" ]] && out2+=("${ron} ${fon},$me") || out2+=("${roff} ${fon},mb-setvar \"menu_sep_font_family='${fon}'\";$me") done fi @@ -536,36 +538,36 @@ out2+=("^tag(gradientpos)") out2+=("^sep($GRADIENT_POS $GRADIENT)") out2+=("󰄱 $NONE,jgctl menu_gradient_pos none;$me") out2+=("^sep()") -out2+=(" $TOP,jgctl menu_gradient_pos top;$me") -out2+=(" $RIGHT,jgctl menu_gradient_pos right;$me") -out2+=(" $BOTTOM,jgctl menu_gradient_pos bottom;$me") -out2+=(" $LEFT,jgctl menu_gradient_pos left;$me") -out2+=(" $TOP_LEFT,jgctl menu_gradient_pos top_left;$me") -out2+=(" $TOP_RIGHT,jgctl menu_gradient_pos top_right;$me") -out2+=(" $BOTTOM_LEFT,jgctl menu_gradient_pos bottom_left;$me") -out2+=(" $BOTTOM_RIGHT,jgctl menu_gradient_pos bottom_right;$me") +out2+=("  $TOP,jgctl menu_gradient_pos top;$me") +out2+=("  $RIGHT,jgctl menu_gradient_pos right;$me") +out2+=("  $BOTTOM,jgctl menu_gradient_pos bottom;$me") +out2+=("  $LEFT,jgctl menu_gradient_pos left;$me") +out2+=("  $TOP_LEFT,jgctl menu_gradient_pos top_left;$me") +out2+=(" $TOP_RIGHT,jgctl menu_gradient_pos top_right;$me") +out2+=(" $BOTTOM_LEFT,jgctl menu_gradient_pos bottom_left;$me") +out2+=(" $BOTTOM_RIGHT,jgctl menu_gradient_pos bottom_right;$me") out2+=("^tag(sephalign)") out2+=("^sep($SEP_HALIGN)") -[[ "$SEPHALIGN" == "left" ]] && out2+=("  $H_LEFT,jgctl sep_halign left;$me") || out2+=("  $H_LEFT,jgctl sep_halign left;$me") -[[ "$SEPHALIGN" == "center" ]] && out2+=("  $H_CENTER,jgctl sep_halign center;$me") || out2+=("  $H_CENTER,jgctl sep_halign center;$me") -[[ "$SEPHALIGN" == "right" ]] && out2+=("  $H_RIGHT,jgctl sep_halign right;$me") || out2+=("  $H_RIGHT,jgctl sep_halign right;$me") +[[ "$SEPHALIGN" == "left" ]] && out2+=("${ron}$H_LEFT,jgctl sep_halign left;$me") || out2+=("${roff}  $H_LEFT,jgctl sep_halign left;$me") +[[ "$SEPHALIGN" == "center" ]] && out2+=("${ron}$H_CENTER,jgctl sep_halign center;$me") || out2+=("${roff}  $H_CENTER,jgctl sep_halign center;$me") +[[ "$SEPHALIGN" == "right" ]] && out2+=("${ron}$H_RIGHT,jgctl sep_halign right;$me") || out2+=("${roff}  $H_RIGHT,jgctl sep_halign right;$me") out2+=("^tag(itemborder_radius)") out2+=("^sep($ITEM_BORDER)") -[[ "$IBORDER" == 0 ]] && out2+=(" 0 px,jgctl item_border 0;$me") || out2+=(" 0 px,jgctl item_border 0;$me") +[[ "$IBORDER" == 0 ]] && out2+=("${ron} 0 px,jgctl item_border 0;$me") || out2+=("${roff} 0 px,jgctl item_border 0;$me") out2+=("^sep()") -[[ "$IBORDER" == 1 ]] && out2+=(" 1 px,jgctl item_border 1;$me") || out2+=(" 1 px,jgctl item_border 1;$me") -[[ "$IBORDER" == 2 ]] && out2+=(" 2 px,jgctl item_border 2;$me") || out2+=(" 2 px,jgctl item_border 2;$me") +[[ "$IBORDER" == 1 ]] && out2+=("${ron} 1 px,jgctl item_border 1;$me") || out2+=("${roff} 1 px,jgctl item_border 1;$me") +[[ "$IBORDER" == 2 ]] && out2+=("${ron} 2 px,jgctl item_border 2;$me") || out2+=("${roff} 2 px,jgctl item_border 2;$me") out2+=("^sep($ITEM_RADIUS)") -[[ "$IRADIUS" == 0 ]] && out2+=(" 0 px,jgctl item_radius 0;$me") || out2+=(" 0 px,jgctl item_radius 0;$me") +[[ "$IRADIUS" == 0 ]] && out2+=("${ron} 0 px,jgctl item_radius 0;$me") || out2+=("${roff} 0 px,jgctl item_radius 0;$me") out2+=("^sep()") -[[ "$IRADIUS" == 1 ]] && out2+=(" 1 px,jgctl item_radius 1;$me") || out2+=(" 1 px,jgctl item_radius 1;$me") -[[ "$IRADIUS" == 2 ]] && out2+=(" 2 px,jgctl item_radius 2;$me") || out2+=(" 2 px,jgctl item_radius 2;$me") -[[ "$IRADIUS" == 3 ]] && out2+=(" 3 px,jgctl item_radius 3;$me") || out2+=(" 3 px,jgctl item_radius 3;$me") -[[ "$IRADIUS" == 4 ]] && out2+=(" 4 px,jgctl item_radius 4;$me") || out2+=(" 4 px,jgctl item_radius 4;$me") -[[ "$IRADIUS" == 5 ]] && out2+=(" 5 px,jgctl item_radius 5;$me") || out2+=(" 5 px,jgctl item_radius 5;$me") -[[ "$IRADIUS" == 6 ]] && out2+=(" 6 px,jgctl item_radius 6;$me") || out2+=(" 6 px,jgctl item_radius 6;$me") +[[ "$IRADIUS" == 1 ]] && out2+=("${ron} 1 px,jgctl item_radius 1;$me") || out2+=("${roff} 1 px,jgctl item_radius 1;$me") +[[ "$IRADIUS" == 2 ]] && out2+=("${ron} 2 px,jgctl item_radius 2;$me") || out2+=("${roff} 2 px,jgctl item_radius 2;$me") +[[ "$IRADIUS" == 3 ]] && out2+=("${ron} 3 px,jgctl item_radius 3;$me") || out2+=("${roff} 3 px,jgctl item_radius 3;$me") +[[ "$IRADIUS" == 4 ]] && out2+=("${ron} 4 px,jgctl item_radius 4;$me") || out2+=("${roff} 4 px,jgctl item_radius 4;$me") +[[ "$IRADIUS" == 5 ]] && out2+=("${ron} 5 px,jgctl item_radius 5;$me") || out2+=("${roff} 5 px,jgctl item_radius 5;$me") +[[ "$IRADIUS" == 6 ]] && out2+=("${ron} 6 px,jgctl item_radius 6;$me") || out2+=("${roff} 6 px,jgctl item_radius 6;$me") #out+=("^sep($MORE_MENU_SETTINGS)") @@ -574,8 +576,6 @@ out2+=("^sep()") ### RUN if [[ "$1" == "-s" ]]; then - . /usr/share/mb-jgtools/pipemenu-standalone.cfg - . $HOME/.config/mabox/mabox.conf CNF_DIR="$HOME/.config/colorizer" CNF_FILE="$CNF_DIR/colorizer.conf" diff --git a/bin/colorizer-ob b/bin/colorizer-ob index 33febcc..a5ea81a 100755 --- a/bin/colorizer-ob +++ b/bin/colorizer-ob @@ -1,7 +1,7 @@ #!/bin/bash # # colorizer - set of tools for Mabox (auto)theming -# Copyright (C) 2022-2025 Daniel Napora +# Copyright (C) 2022-2026 Daniel Napora # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -16,6 +16,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +. /usr/share/mb-jgtools/jgtools.inc + + MBCOLORSDIR="$HOME"/.themes/MBcolors/openbox-3/ GRADIENT_FILE="$HOME"/.config/colorizer/gradients_all.inc MORE_GRADIENT_FILE="$HOME"/.config/colorizer/gradients_menu.inc @@ -346,19 +349,19 @@ out+=(" $QUICK_TWEAKS,^checkout(tweaks)") out2+=("^sep()") out2+=(" $RANDOMIZE,obtctl randomizer;$me") out2+=("\"\"\"^sep($RAISED_OR_FLAT?)\"\"\"") - [[ "$BEVEL" == "flat" ]] && out2+=(" $FLAT,obtctl raised 0;$me") || out2+=(" $FLAT,obtctl raised 0;$me") - [[ "$BEVEL" == "raised" ]] && out2+=(" $RAISED,obtctl raised 1;$me") || out2+=(" $RAISED,obtctl raised 1;$me") - [[ "$BEVEL" == "sunken" ]] && out2+=(" $SUNKEN,obtctl raised 2;$me") || out2+=(" $SUNKEN,obtctl raised 2;$me") + [[ "$BEVEL" == "flat" ]] && out2+=("${ron} $FLAT,obtctl raised 0;$me") || out2+=("${roff} $FLAT,obtctl raised 0;$me") + [[ "$BEVEL" == "raised" ]] && out2+=("${ron} $RAISED,obtctl raised 1;$me") || out2+=("${roff} $RAISED,obtctl raised 1;$me") + [[ "$BEVEL" == "sunken" ]] && out2+=("${ron} $SUNKEN,obtctl raised 2;$me") || out2+=("${roff} $SUNKEN,obtctl raised 2;$me") out2+=("^sep($GRADIENT_TYPE)") - [[ "$GRAD" == Solid ]] && out2+=(" $SOLID_COLOR,obtctl gradient_type solid;$me") || out2+=(" $SOLID_COLOR,obtctl gradient_type solid;$me") + [[ "$GRAD" == Solid ]] && out2+=("${ron} $SOLID_COLOR,obtctl gradient_type solid;$me") || out2+=("${roff} $SOLID_COLOR,obtctl gradient_type solid;$me") out2+=("^sep()") - [[ "$GRAD" == Vertical ]] && out2+=(" $VERTICAL,obtctl gradient_type vertical;$me") || out2+=(" $VERTICAL,obtctl gradient_type vertical;$me") - [[ "$GRAD" == Horizontal ]] && out2+=(" $HORIZONTAL,obtctl gradient_type horizontal;$me") || out2+=(" $HORIZONTAL,obtctl gradient_type horizontal;$me") - [[ "$GRAD" == MirrorHorizontal ]] && out2+=(" $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me") || out2+=(" $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me") - [[ "$GRAD" == SplitVertical ]] && out2+=(" $SPLITVERTICAL,obtctl gradient_type splitvertical;$me") || out2+=(" $SPLITVERTICAL,obtctl gradient_type splitvertical;$me") - [[ "$GRAD" == Diagonal ]] && out2+=(" $DIAGONAL,obtctl gradient_type diagonal;$me") || out2+=(" $DIAGONAL,obtctl gradient_type diagonal;$me") - [[ "$GRAD" == CrossDiagonal ]] && out2+=(" $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me") || out2+=(" $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me") - [[ "$GRAD" == Pyramid ]] && out2+=(" $PYRAMID,obtctl gradient_type pyramid;$me") || out2+=(" $PYRAMID,obtctl gradient_type pyramid;$me") + [[ "$GRAD" == Vertical ]] && out2+=("${ron} $VERTICAL,obtctl gradient_type vertical;$me") || out2+=("${roff} $VERTICAL,obtctl gradient_type vertical;$me") + [[ "$GRAD" == Horizontal ]] && out2+=("${ron} $HORIZONTAL,obtctl gradient_type horizontal;$me") || out2+=("${roff} $HORIZONTAL,obtctl gradient_type horizontal;$me") + [[ "$GRAD" == MirrorHorizontal ]] && out2+=("${ron} $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me") || out2+=("${roff} $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me") + [[ "$GRAD" == SplitVertical ]] && out2+=("${ron} $SPLITVERTICAL,obtctl gradient_type splitvertical;$me") || out2+=("${roff} $SPLITVERTICAL,obtctl gradient_type splitvertical;$me") + [[ "$GRAD" == Diagonal ]] && out2+=("${ron} $DIAGONAL,obtctl gradient_type diagonal;$me") || out2+=("${roff} $DIAGONAL,obtctl gradient_type diagonal;$me") + [[ "$GRAD" == CrossDiagonal ]] && out2+=("${ron} $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me") || out2+=("${roff} $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me") + [[ "$GRAD" == Pyramid ]] && out2+=("${ron} $PYRAMID,obtctl gradient_type pyramid;$me") || out2+=("${roff} $PYRAMID,obtctl gradient_type pyramid;$me") #### COLOR SCHEMES  out+=(" $THEMES,^checkout(schemes)") @@ -421,13 +424,13 @@ out+=(" $INACTIVE_BG,^pipe(mbclr '$ [[ ! -z "$ABGTO" ]] && out+=(" $INACTIVE_BG_TO,^pipe(mbclr '$NBGTO' obtctl clrnormalbgto '${INACTIVE_BG_TO}' '$me')") out+=(" title $TEXT_COLOR,^pipe(mbclr '$NFG' obtctl inactivetextcolor '${TEXT} ${INACTIVE_FG}' '$me')") out+=("^sep()") -[[ "$WEIGHT_INACT" =~ .*"old" ]] && out+=(" $BOLD,obtctl fontweight_inactive Normal;$me") || out+=(" $BOLD,obtctl fontweight_inactive Bold;$me") -[[ "$SLANT_INACT" =~ .*"talic" ]] && out+=(" $ITALIC,obtctl fontslant_inactive Normal;$me") || out+=(" $ITALIC,obtctl fontslant_inactive Italic;$me") +[[ "$WEIGHT_INACT" =~ .*"old" ]] && out+=("${cbon} $BOLD,obtctl fontweight_inactive Normal;$me") || out+=("${cboff} $BOLD,obtctl fontweight_inactive Bold;$me") +[[ "$SLANT_INACT" =~ .*"talic" ]] && out+=("${cbon} $ITALIC,obtctl fontslant_inactive Normal;$me") || out+=("${cboff} $ITALIC,obtctl fontslant_inactive Italic;$me") out+=("^sep(Gradient)") out+=("󰹸 $GRADIENT_TYPE [ ${GRAD} ],^checkout(gradient)") out+=(" $PRE_GRADIENTS,^pipe(mbgrad ob)") -out+=(" $GRADIENT_REVERSE,obtctl activegradient '${ABGTO}' '${ABG}';$me") +[[ "${GRAD}" != "Solid" ]] && out+=(" $GRADIENT_REVERSE,obtctl activegradient '${ABGTO}' '${ABG}';$me") out+=("^sep($BORDER)") out+=(" $ACTIVE_BORDER,^pipe(mbclr '$ALINE' obtctl activeborderColor '${ACTIVE_BORDER}' '$me')") @@ -467,16 +470,16 @@ out2+=("^sep()") out2+=("Big 12px,obtctl buttons big-12;$me") out2+=("Big 14px,obtctl buttons big-14;$me") out2+=("^sep($TEXTALIGN)") -[[ "$TXTJUST" = left ]] && out2+=("綠  $LEFT,obtctl textjustify left;$me")||out2+=("祿  $LEFT,obtctl textjustify left;$me") -[[ "$TXTJUST" = center ]] && out2+=("綠  $CENTER,obtctl textjustify center;$me")||out2+=("祿  $CENTER,obtctl textjustify center;$me") -[[ "$TXTJUST" = right ]] && out2+=("綠  $RIGHT,obtctl textjustify right;$me")||out2+=("祿  $RIGHT,obtctl textjustify right;$me") +[[ "$TXTJUST" = left ]] && out2+=("${ron}  $LEFT,obtctl textjustify left;$me")||out2+=("${roff}  $LEFT,obtctl textjustify left;$me") +[[ "$TXTJUST" = center ]] && out2+=("${ron}  $CENTER,obtctl textjustify center;$me")||out2+=("${roff}  $CENTER,obtctl textjustify center;$me") +[[ "$TXTJUST" = right ]] && out2+=("${ron}  $RIGHT,obtctl textjustify right;$me")||out2+=("${roff}  $RIGHT,obtctl textjustify right;$me") out2+=("^sep($BUTTONS_LAYOUT)") -[[ "$NDSLIMC" == NDSLIMC ]] && out2+=(" full NDSLIMC (default),obtctl ndslimc NDSLIMC;$me") || out2+=(" full NDSLIMC (default),obtctl ndslimc NDSLIMC;$me") -[[ "$NDSLIMC" == DSLIMC ]] && out2+=(" full (no icon) DSLIMC,obtctl ndslimc DSLIMC;$me") || out2+=(" full (no icon) DSLIMC,obtctl ndslimc DSLIMC;$me") -[[ "$NDSLIMC" == NLIMC ]] && out2+=(" mini NLIMC,obtctl ndslimc NLIMC;$me") || out2+=(" mini NLIMC,obtctl ndslimc NLIMC;$me") -[[ "$NDSLIMC" == LIMC ]] && out2+=(" mini (no icon) LIMC,obtctl ndslimc LIMC;$me") || out2+=(" mini (no icon) LIMC,obtctl ndslimc LIMC;$me") -[[ "$NDSLIMC" == CMIL ]] && out2+=(" crazy CMIL,obtctl ndslimc CMIL;$me") || out2+=(" crazy CMIL,obtctl ndslimc CMIL;$me") +[[ "$NDSLIMC" == NDSLIMC ]] && out2+=("${ron} full NDSLIMC (default),obtctl ndslimc NDSLIMC;$me") || out2+=("${roff} full NDSLIMC (default),obtctl ndslimc NDSLIMC;$me") +[[ "$NDSLIMC" == DSLIMC ]] && out2+=("${ron} full (no icon) DSLIMC,obtctl ndslimc DSLIMC;$me") || out2+=("${roff} full (no icon) DSLIMC,obtctl ndslimc DSLIMC;$me") +[[ "$NDSLIMC" == NLIMC ]] && out2+=("${ron} mini NLIMC,obtctl ndslimc NLIMC;$me") || out2+=("${roff} mini NLIMC,obtctl ndslimc NLIMC;$me") +[[ "$NDSLIMC" == LIMC ]] && out2+=("${ron} mini (no icon) LIMC,obtctl ndslimc LIMC;$me") || out2+=("${roff} mini (no icon) LIMC,obtctl ndslimc LIMC;$me") +[[ "$NDSLIMC" == CMIL ]] && out2+=("${ron} crazy CMIL,obtctl ndslimc CMIL;$me") || out2+=("${roff} crazy CMIL,obtctl ndslimc CMIL;$me") out2+=("^sep($LEGEND)") out2+=("^sep(N: Window icon)") out2+=("^sep(L: Window label (Title))") @@ -497,7 +500,7 @@ out2+=("^sep()") sizes=(16 15 14 13 12 11 10 9 8) for i in "${sizes[@]}" do -[[ "$FSIZE" == "$i" ]] && out2+=(" $i px,obtctl fontsize $i;$me") || out2+=(" $i px,obtctl fontsize $i;$me") +[[ "$FSIZE" == "$i" ]] && out2+=("${ron} $i px,obtctl fontsize $i;$me") || out2+=("${roff} $i px,obtctl fontsize $i;$me") done out2+=("^sep($FONTFAMILY)") @@ -510,20 +513,20 @@ else fi if [ "${#favfonts[@]}" -gt 0 ];then for fon in "${favfonts[@]}";do - [[ "${FNAME}" == "$fon" ]] && out2+=(" ${fon},$me") || out2+=(" ${fon},obtctl fontfamily \"${fon}\";$me") + [[ "${FNAME}" == "$fon" ]] && out2+=("${ron} ${fon},$me") || out2+=("${roff} ${fon},obtctl fontfamily \"${fon}\";$me") done fi out2+=("^sep()") -[[ "$WEIGHT" =~ .*"old" ]] && out2+=(" $BOLD,obtctl fontweight Normal;$me") || out2+=(" $BOLD,obtctl fontweight Bold;$me") -[[ "$SLANT" =~ .*"talic" ]] && out2+=(" $ITALIC,obtctl fontslant Normal;$me") || out2+=(" $ITALIC,obtctl fontslant Italic;$me") +[[ "$WEIGHT" =~ .*"old" ]] && out2+=("${cbon} $BOLD,obtctl fontweight Normal;$me") || out2+=("${cboff} $BOLD,obtctl fontweight Bold;$me") +[[ "$SLANT" =~ .*"talic" ]] && out2+=("${cbon} $ITALIC,obtctl fontslant Normal;$me") || out2+=("${cboff} $ITALIC,obtctl fontslant Italic;$me") #SHADOW out2+=("^sep($TEXTALIGN)") -[[ "$TXTJUST" = left ]] && out2+=("綠  $LEFT,obtctl textjustify left;$me")||out2+=("祿  $LEFT,obtctl textjustify left;$me") -[[ "$TXTJUST" = center ]] && out2+=("綠  $CENTER,obtctl textjustify center;$me")||out2+=("祿  $CENTER,obtctl textjustify center;$me") -[[ "$TXTJUST" = right ]] && out2+=("綠  $RIGHT,obtctl textjustify right;$me")||out2+=("祿  $RIGHT,obtctl textjustify right;$me") +[[ "$TXTJUST" = left ]] && out2+=("${ron}  $LEFT,obtctl textjustify left;$me")||out2+=("${roff}  $LEFT,obtctl textjustify left;$me") +[[ "$TXTJUST" = center ]] && out2+=("${ron}  $CENTER,obtctl textjustify center;$me")||out2+=("${roff}  $CENTER,obtctl textjustify center;$me") +[[ "$TXTJUST" = right ]] && out2+=("${ron}  $RIGHT,obtctl textjustify right;$me")||out2+=("${roff}  $RIGHT,obtctl textjustify right;$me") out2+=("^sep()") out2+=("$SHADOW,^checkout(shadow)") out2+=("^tag(shadow)") @@ -535,62 +538,42 @@ out2+=("$LIGHT,obtctl shadow 2;$me") #PADDING out2+=("^tag(padding)") out2+=("^sep($VERTICAL)") -out2+=("0,obtctl paddingHeight 0;$me") +[[ "${PHEIGHT}" == 0 ]] && out2+=("${ron} 0 px,obtctl paddingHeight 0;$me") || out2+=("${roff} 0 px,obtctl paddingHeight 0;$me") out2+=("^sep()") -out2+=("1,obtctl paddingHeight 1;$me") -out2+=("2,obtctl paddingHeight 2;$me") -out2+=("3,obtctl paddingHeight 3;$me") -out2+=("4,obtctl paddingHeight 4;$me") -out2+=("5,obtctl paddingHeight 5;$me") -out2+=("6,obtctl paddingHeight 6;$me") -out2+=("8,obtctl paddingHeight 8;$me") -out2+=("10,obtctl paddingHeight 10;$me") -out2+=("12,obtctl paddingHeight 12;$me") -out2+=("16,obtctl paddingHeight 16;$me") -out2+=("20,obtctl paddingHeight 20;$me") +for ph in 1 2 3 4 5 6 8 10 12 16 20 +do +[[ "${PHEIGHT}" == "${ph}" ]] && out2+=("${ron} $ph px,obtctl paddingHeight ${ph};$me") || out2+=("${roff} ${ph} px,obtctl paddingHeight ${ph};$me") +done + out2+=("^sep($HORIZONTAL)") -out2+=("0,obtctl paddingWidth 0;$me") +[[ "${PWIDTH}" == 0 ]] && out2+=("${ron} 0 px,obtctl paddingWidth 0;$me") || out2+=("${roff} 0 px,obtctl paddingWidth 0;$me") out2+=("^sep()") -out2+=("1,obtctl paddingWidth 1;$me") -out2+=("2,obtctl paddingWidth 2;$me") -out2+=("3,obtctl paddingWidth 3;$me") -out2+=("4,obtctl paddingWidth 4;$me") -out2+=("5,obtctl paddingWidth 5;$me") -out2+=("6,obtctl paddingWidth 6;$me") -out2+=("8,obtctl paddingWidth 8;$me") -out2+=("10,obtctl paddingWidth 10;$me") -out2+=("12,obtctl paddingWidth 12;$me") -out2+=("16,obtctl paddingWidth 16;$me") -out2+=("20,obtctl paddingWidth 20;$me") +for pw in 1 2 3 4 5 6 8 10 12 16 20 +do +[[ "${PWIDTH}" == "${pw}" ]] && out2+=("${ron} $pw px,obtctl paddingWidth ${pw};$me") || out2+=("${roff} ${pw} px,obtctl paddingWidth ${pw};$me") +done #BORDER out2+=("^tag(border)") out2+=("^sep($BORDER)") -out2+=("0,obtctl borderWidth 0;$me") +[[ "${BORD}" == 0 ]] && out2+=("${ron} 0 px,obtctl borderWidth 0;$me") || out2+=("${roff} 0 px,obtctl borderWidth 0;$me") out2+=("^sep()") -out2+=("1,obtctl borderWidth 1;$me") -out2+=("2,obtctl borderWidth 2;$me") -out2+=("3,obtctl borderWidth 3;$me") -out2+=("4,obtctl borderWidth 4;$me") -out2+=("5,obtctl borderWidth 5;$me") -out2+=("6,obtctl borderWidth 6;$me") -out2+=("8,obtctl borderWidth 8;$me") -out2+=("10,obtctl borderWidth 10;$me") -out2+=("12,obtctl borderWidth 12;$me") -out2+=("16,obtctl borderWidth 16;$me") -out2+=("20,obtctl borderWidth 20;$me") +for bor in 1 2 3 4 5 6 8 10 12 16 20 +do +[[ "${BORD}" == "${bor}" ]] && out2+=("${ron} ${bor} px,obtctl borderWidth ${bor};$me") || out2+=("${roff} ${bor} px,obtctl borderWidth ${bor};$me") +done #GRADIENT out2+=("^tag(gradient)") out2+=("^sep($GRADIENT_TYPE)") -[[ "$GRAD" == Solid ]] && out2+=(" $SOLID_COLOR,obtctl gradient_type solid;$me") || out2+=(" $SOLID_COLOR,obtctl gradient_type solid;$me") +[[ "$GRAD" == Solid ]] && out2+=("${ron} $SOLID_COLOR,obtctl gradient_type solid;$me") || out2+=("${roff} $SOLID_COLOR,obtctl gradient_type solid;$me") out2+=("^sep()") -[[ "$GRAD" == Vertical ]] && out2+=(" $VERTICAL,obtctl gradient_type vertical;$me") || out2+=(" $VERTICAL,obtctl gradient_type vertical;$me") -[[ "$GRAD" == Horizontal ]] && out2+=(" $HORIZONTAL,obtctl gradient_type horizontal;$me") || out2+=(" $HORIZONTAL,obtctl gradient_type horizontal;$me") -[[ "$GRAD" == MirrorHorizontal ]] && out2+=(" $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me") || out2+=(" $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me") -[[ "$GRAD" == SplitVertical ]] && out2+=(" $SPLITVERTICAL,obtctl gradient_type splitvertical;$me") || out2+=(" $SPLITVERTICAL,obtctl gradient_type splitvertical;$me") -[[ "$GRAD" == Diagonal ]] && out2+=(" $DIAGONAL,obtctl gradient_type diagonal;$me") || out2+=(" $DIAGONAL,obtctl gradient_type diagonal;$me") -[[ "$GRAD" == CrossDiagonal ]] && out2+=(" $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me") || out2+=(" $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me") -[[ "$GRAD" == Pyramid ]] && out2+=(" $PYRAMID,obtctl gradient_type pyramid;$me") || out2+=(" $PYRAMID,obtctl gradient_type pyramid;$me") +[[ "$GRAD" == Vertical ]] && out2+=("${ron} $VERTICAL,obtctl gradient_type vertical;$me") || out2+=("${roff} $VERTICAL,obtctl gradient_type vertical;$me") +[[ "$GRAD" == Horizontal ]] && out2+=("${ron} $HORIZONTAL,obtctl gradient_type horizontal;$me") || out2+=("${roff} $HORIZONTAL,obtctl gradient_type horizontal;$me") +[[ "$GRAD" == MirrorHorizontal ]] && out2+=("${ron} $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me") || out2+=("${roff} $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me") +[[ "$GRAD" == SplitVertical ]] && out2+=("${ron} $SPLITVERTICAL,obtctl gradient_type splitvertical;$me") || out2+=("${roff} $SPLITVERTICAL,obtctl gradient_type splitvertical;$me") +[[ "$GRAD" == Diagonal ]] && out2+=("${ron} $DIAGONAL,obtctl gradient_type diagonal;$me") || out2+=("${roff} $DIAGONAL,obtctl gradient_type diagonal;$me") +[[ "$GRAD" == CrossDiagonal ]] && out2+=("${ron} $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me") || out2+=("${roff} $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me") +[[ "$GRAD" == Pyramid ]] && out2+=("${ron} $PYRAMID,obtctl gradient_type pyramid;$me") || out2+=("${roff} $PYRAMID,obtctl gradient_type pyramid;$me") #HANDLE #out2+=("^tag(handle)") @@ -601,15 +584,12 @@ out2+=("^sep()") #HANDLE WIDTH out2+=("^tag(handlewidth)") out2+=("^sep($HANDLEWIDTH)") -out2+=("0,obtctl handlewidth 0;$me") +[[ "${HANDLE}" == 0 ]] && out2+=("${ron} 0 px,obtctl handlewidth 0;$me") || out2+=("${roff} 0 px,obtctl handlewidth 0;$me") out2+=("^sep()") -out2+=("1,obtctl handlewidth 1;$me") -out2+=("2,obtctl handlewidth 2;$me") -out2+=("3,obtctl handlewidth 3;$me") -out2+=("4,obtctl handlewidth 4;$me") -out2+=("6,obtctl handlewidth 6;$me") -out2+=("8,obtctl handlewidth 8;$me") -out2+=("10,obtctl handlewidth 10;$me") +for hdl in 1 2 3 4 6 8 10 +do +[[ "${HANDLE}" == "${hdl}" ]] && out2+=("${ron} ${hdl} px,obtctl handlewidth ${hdl};$me") || out2+=("${roff} ${hdl} px,obtctl handlewidth ${hdl};$me") +done else # Theme other than MBColors, we can only edit rc.xml getvaluesrc @@ -629,13 +609,13 @@ else fi if [ "${#favfonts[@]}" -gt 0 ];then for fon in "${favfonts[@]}";do - [[ "${FNAME}" == "$fon" ]] && out+=(" ${fon},$me") || out+=(" ${fon},obtctl fontfamily \"${fon}\";$me") + [[ "${FNAME}" == "$fon" ]] && out+=("${ron} ${fon},$me") || out+=("${roff} ${fon},obtctl fontfamily \"${fon}\";$me") done fi out+=("^sep()") -[[ "$WEIGHT" =~ .*"old" ]] && out+=(" $BOLD,obtctl fontweight Normal;$me") || out+=(" $BOLD,obtctl fontweight Bold;$me") -[[ "$SLANT" =~ .*"talic" ]] && out+=(" $ITALIC,obtctl fontslant Normal;$me") || out+=(" $ITALIC,obtctl fontslant Italic;$me") +[[ "$WEIGHT" =~ .*"old" ]] && out+=("${cbon} $BOLD,obtctl fontweight Normal;$me") || out+=("${cboff} $BOLD,obtctl fontweight Bold;$me") +[[ "$SLANT" =~ .*"talic" ]] && out+=("${cbon} $ITALIC,obtctl fontslant Normal;$me") || out+=("${cboff} $ITALIC,obtctl fontslant Italic;$me") out+=("^sep()") out+=("$FONTSIZE [ $FSIZE px ],^checkout(obfsize)") out2+=("^tag(obfsize)") @@ -643,14 +623,14 @@ out2+=("^sep($FONTSIZE)") sizes=(16 15 14 13 12 11 10 9 8) for i in "${sizes[@]}" do -[[ "$FSIZE" == "$i" ]] && out2+=(" $i px,obtctl fontsize $i;$me") || out2+=(" $i px,obtctl fontsize $i;$me") +[[ "$FSIZE" == "$i" ]] && out2+=("${ron} $i px,obtctl fontsize $i;$me") || out2+=("${roff} $i px,obtctl fontsize $i;$me") done out+=("^sep($BUTTONS_LAYOUT)") -[[ "$NDSLIMC" == NDSLIMC ]] && out+=(" full NDSLIMC (default),obtctl ndslimc NDSLIMC;$me") || out+=(" full NDSLIMC (default),obtctl ndslimc NDSLIMC;$me") -[[ "$NDSLIMC" == NLIMC ]] && out+=(" mini NLIMC,obtctl ndslimc NLIMC;$me") || out+=(" mini NLIMC,obtctl ndslimc NLIMC;$me") -[[ "$NDSLIMC" == LIMC ]] && out+=(" mini (no icon) LIMC,obtctl ndslimc LIMC;$me") || out+=(" mini (no icon) LIMC,obtctl ndslimc LIMC;$me") -[[ "$NDSLIMC" == CMIL ]] && out+=(" crazy CMIL,obtctl ndslimc CMIL;$me") || out+=(" crazy CMIL,obtctl ndslimc CMIL;$me") +[[ "$NDSLIMC" == NDSLIMC ]] && out+=("${ron} full NDSLIMC (default),obtctl ndslimc NDSLIMC;$me") || out+=("${roff} full NDSLIMC (default),obtctl ndslimc NDSLIMC;$me") +[[ "$NDSLIMC" == NLIMC ]] && out+=("${ron} mini NLIMC,obtctl ndslimc NLIMC;$me") || out+=("${roff} mini NLIMC,obtctl ndslimc NLIMC;$me") +[[ "$NDSLIMC" == LIMC ]] && out+=("${ron} mini (no icon) LIMC,obtctl ndslimc LIMC;$me") || out+=("${roff} mini (no icon) LIMC,obtctl ndslimc LIMC;$me") +[[ "$NDSLIMC" == CMIL ]] && out+=("${ron} crazy CMIL,obtctl ndslimc CMIL;$me") || out+=("${roff} crazy CMIL,obtctl ndslimc CMIL;$me") out+=("^sep($LEGEND)") out+=("^sep(N: Window icon)") out+=("^sep(L: Window label (Title))") @@ -663,8 +643,7 @@ fi ### RUN if [[ "$1" == "-s" ]]; then -. /usr/share/mb-jgtools/pipemenu-standalone.cfg -. $HOME/.config/mabox/mabox.conf + source $HOME/.config/colorizer/colorizer.conf out+=("^sep()")