glyphicons

This commit is contained in:
2026-04-13 11:33:17 +02:00
parent eb758ac162
commit 7093630d54
3 changed files with 141 additions and 162 deletions

0
bin/colorizer Normal file → Executable file
View File

View File

@@ -1,7 +1,7 @@
#!/bin/bash
#
# colorizer - set of tools for Mabox (auto)theming
# Copyright (C) 2022-2023 Daniel Napora <napcok@gmail.com>
# Copyright (C) 2022-2026 Daniel Napora <danieln@maboxlinux.org>
#
# 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 <http://www.gnu.org/licenses/>.
. /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 '/<theme>/ {while (getline n) {if (match(n, /<name>/))
{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 '/<theme>/ {while (getline n) {if (match(n, /<name>/))
# {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+=("<big></big> $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+=("<big></big> $(printf "<b><tt>%3s</tt></b>,%s" "$i" "jgctl border ${i}")") || out3+=("<big></big> $(printf "<tt>%3s</tt>,%s" "$i" "jgctl border ${i}")");done
for i in 0 1 2 3 4 5 6 8 10 12; do [[ "$jgtools_border" == $i ]] && out3+=("<big>${ron}</big> $(printf "<b><tt>%3s</tt></b>,%s" "$i" "jgctl border ${i}")") || out3+=("<big>${roff}</big> $(printf "<tt>%3s</tt>,%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+=("<big></big> $(printf "<b><tt>%3s</tt></b>,%s" "$i" "jgctl padding ${i}")") || out3+=("<big></big> $(printf "<tt>%3s</tt>,%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+=("<big>${ron}</big> $(printf "<b><tt>%3s</tt></b>,%s" "$i" "jgctl padding ${i}")") || out3+=("<big>${roff}</big> $(printf "<tt>%3s</tt>,%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+=("<big></big> $(printf "<b><tt>%4s</tt></b>,%s" "$i" "mb-setvar submenu_spacing=${i};$me")") || out3+=("<big></big> $(printf "<tt>%4s</tt>,%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+=("<big>${ron}</big> $(printf "<b><tt>%4s</tt></b>,%s" "$i" "mb-setvar submenu_spacing=${i};$me")") || out3+=("<big>${roff}</big> $(printf "<tt>%4s</tt>,%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+=("<big></big> $(printf "<b><tt>%4s%%</tt></b>,%s" "$i" "mb-setvar item_height_factor=${i};$me")") || out3+=("<big></big> $(printf "<tt>%4s%%</tt>,%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+=("<big>${ron}</big> $(printf "<b><tt>%4s%%</tt></b>,%s" "$i" "mb-setvar item_height_factor=${i};$me")") || out3+=("<big>${roff}</big> $(printf "<tt>%4s%%</tt>,%s" "$i" "mb-setvar item_height_factor=${i};$me")");done
out3+=("^tag(arrow)")
out3+=("^sep($ARROW_STRING)")
@@ -361,14 +363,14 @@ out+=("<big><span bgcolor='${MBG}'> <span fgcolor='${TBG}'></span> <span fgco
((n=n+1))
case "$grad" 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
out2+=("<tt>$(printf '%-20s' "${scheme_name}")</tt><big><span bgcolor='${mbg}' fgcolor='${nfg}'> <small>item</small> <span bgcolor='${tbg}' fgcolor='${tfg}'> <small><b>title</b></small> </span> <span bgcolor='${sbg}' fgcolor='${sfg}'> <small>[ sel ]</small> </span> <span bgcolor='${mbgt}'> <small>${icon}</small> </span></span></big>,jgctl applyscheme sys $n;$me")
done < <(tail -n +2 "$SYSSCHEMES")
@@ -383,14 +385,14 @@ out+=("<big><span bgcolor='${MBG}'> <span fgcolor='${TBG}'></span> <span fgco
((n=n+1))
case "$grad" 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
out2+=("<tt>$(printf '%-20s' "${scheme_name}")</tt><big><span bgcolor='${mbg}' fgcolor='${nfg}'> <small>item</small> <span bgcolor='${tbg}' fgcolor='${tfg}'> <small><b>title</b></small> </span> <span bgcolor='${sbg}' fgcolor='${sfg}'> <small>[ sel ]</small> </span> <span bgcolor='${mbgt}'> <small>${icon}</small> </span></span></big>,^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+=("<big>$icon</big> $GRADIENT_POS [ <b>$icon</b> ],^checkout(gradientpos)")
@@ -464,9 +466,9 @@ out+=("<tt><small>$(printf '%3s' "$TBORDERA")</small> <span bgcolor='$TBORDER' b
out+=("^sep()")
case "$SEPHALIGN" in
left) icon="";;
center) icon="";;
right) icon="";;
left) icon="";;
center) icon="";;
right) icon="";;
esac
out+=("<big>$icon</big> $SEP_HALIGN [ <b>$SEPHALIGN</b> ],^checkout(sephalign)")
@@ -491,7 +493,7 @@ out+=("<big>󰛖</big> $ITEM [ <b>$menu_font_family $menu_font_size</b> ],^che
sizes=(14 13 12 11 10 9 8)
for i in "${sizes[@]}"
do
[[ "$menu_font_size" == "$i" ]] && out2+=("<big></big> <b>$i px</b>,$me") || out2+=("<big></big> $i px,mb-setvar menu_font_size=$i;$me")
[[ "$menu_font_size" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,$me") || out2+=("<big>${roff}</big> $i px,mb-setvar menu_font_size=$i;$me")
done
if [ -f "$HOME/.config/mabox/fonts.list" ];then
@@ -504,7 +506,7 @@ out+=("<big>󰛖</big> $ITEM [ <b>$menu_font_family $menu_font_size</b> ],^che
if [ "${#favfonts[@]}" -gt 0 ];then
out2+=("^sep($FONT_FAMILY)")
for fon in "${favfonts[@]}";do
[[ "$menu_font_family" == "$fon" ]] && out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_font_family='${fon}'\";$me")
[[ "$menu_font_family" == "$fon" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_font_family='${fon}'\";$me")
done
fi
@@ -519,13 +521,13 @@ out+=("<big>󰛖</big> $ITEM [ <b>$menu_font_family $menu_font_size</b> ],^che
sizes=(14 13 12 11 10 9 8)
for i in "${sizes[@]}"
do
[[ "$menu_sep_font_size" == "$i" ]] && out2+=("<big></big> <b>$i px</b>,$me") || out2+=("<big></big> $i px,mb-setvar menu_sep_font_size=$i;$me")
[[ "$menu_sep_font_size" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,$me") || out2+=("<big>${roff}</big> $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+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_sep_font_family='${fon}'\";$me")
[[ "$menu_sep_font_family" == "$fon" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_sep_font_family='${fon}'\";$me")
done
fi
@@ -536,36 +538,36 @@ out2+=("^tag(gradientpos)")
out2+=("^sep($GRADIENT_POS <small>$GRADIENT</small>)")
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+=("<big></big> $H_LEFT,jgctl sep_halign left;$me") || out2+=("<big></big> $H_LEFT,jgctl sep_halign left;$me")
[[ "$SEPHALIGN" == "center" ]] && out2+=("<big></big> $H_CENTER,jgctl sep_halign center;$me") || out2+=("<big></big> $H_CENTER,jgctl sep_halign center;$me")
[[ "$SEPHALIGN" == "right" ]] && out2+=("<big></big> $H_RIGHT,jgctl sep_halign right;$me") || out2+=("<big></big> $H_RIGHT,jgctl sep_halign right;$me")
[[ "$SEPHALIGN" == "left" ]] && out2+=("<big>${ron}</big> <b>$H_LEFT</b>,jgctl sep_halign left;$me") || out2+=("<big>${roff}</big> $H_LEFT,jgctl sep_halign left;$me")
[[ "$SEPHALIGN" == "center" ]] && out2+=("<big>${ron}</big> <b>$H_CENTER</b>,jgctl sep_halign center;$me") || out2+=("<big>${roff}</big> $H_CENTER,jgctl sep_halign center;$me")
[[ "$SEPHALIGN" == "right" ]] && out2+=("<big>${ron}</big> <b>$H_RIGHT</b>,jgctl sep_halign right;$me") || out2+=("<big>${roff}</big> $H_RIGHT,jgctl sep_halign right;$me")
out2+=("^tag(itemborder_radius)")
out2+=("^sep($ITEM_BORDER)")
[[ "$IBORDER" == 0 ]] && out2+=("<big></big> 0 px,jgctl item_border 0;$me") || out2+=("<big></big> 0 px,jgctl item_border 0;$me")
[[ "$IBORDER" == 0 ]] && out2+=("<big>${ron}</big> <b>0 px</b>,jgctl item_border 0;$me") || out2+=("<big>${roff}</big> 0 px,jgctl item_border 0;$me")
out2+=("^sep()")
[[ "$IBORDER" == 1 ]] && out2+=("<big></big> 1 px,jgctl item_border 1;$me") || out2+=("<big></big> 1 px,jgctl item_border 1;$me")
[[ "$IBORDER" == 2 ]] && out2+=("<big></big> 2 px,jgctl item_border 2;$me") || out2+=("<big></big> 2 px,jgctl item_border 2;$me")
[[ "$IBORDER" == 1 ]] && out2+=("<big>${ron}</big> <b>1 px</b>,jgctl item_border 1;$me") || out2+=("<big>${roff}</big> 1 px,jgctl item_border 1;$me")
[[ "$IBORDER" == 2 ]] && out2+=("<big>${ron}</big> <b>2 px</b>,jgctl item_border 2;$me") || out2+=("<big>${roff}</big> 2 px,jgctl item_border 2;$me")
out2+=("^sep($ITEM_RADIUS)")
[[ "$IRADIUS" == 0 ]] && out2+=("<big></big> 0 px,jgctl item_radius 0;$me") || out2+=("<big></big> 0 px,jgctl item_radius 0;$me")
[[ "$IRADIUS" == 0 ]] && out2+=("<big>${ron}</big> <b>0 px</b>,jgctl item_radius 0;$me") || out2+=("<big>${roff}</big> 0 px,jgctl item_radius 0;$me")
out2+=("^sep()")
[[ "$IRADIUS" == 1 ]] && out2+=("<big></big> 1 px,jgctl item_radius 1;$me") || out2+=("<big></big> 1 px,jgctl item_radius 1;$me")
[[ "$IRADIUS" == 2 ]] && out2+=("<big></big> 2 px,jgctl item_radius 2;$me") || out2+=("<big></big> 2 px,jgctl item_radius 2;$me")
[[ "$IRADIUS" == 3 ]] && out2+=("<big></big> 3 px,jgctl item_radius 3;$me") || out2+=("<big></big> 3 px,jgctl item_radius 3;$me")
[[ "$IRADIUS" == 4 ]] && out2+=("<big></big> 4 px,jgctl item_radius 4;$me") || out2+=("<big></big> 4 px,jgctl item_radius 4;$me")
[[ "$IRADIUS" == 5 ]] && out2+=("<big></big> 5 px,jgctl item_radius 5;$me") || out2+=("<big></big> 5 px,jgctl item_radius 5;$me")
[[ "$IRADIUS" == 6 ]] && out2+=("<big></big> 6 px,jgctl item_radius 6;$me") || out2+=("<big></big> 6 px,jgctl item_radius 6;$me")
[[ "$IRADIUS" == 1 ]] && out2+=("<big>${ron}</big> <b>1 px</b>,jgctl item_radius 1;$me") || out2+=("<big>${roff}</big> 1 px,jgctl item_radius 1;$me")
[[ "$IRADIUS" == 2 ]] && out2+=("<big>${ron}</big> <b>2 px</b>,jgctl item_radius 2;$me") || out2+=("<big>${roff}</big> 2 px,jgctl item_radius 2;$me")
[[ "$IRADIUS" == 3 ]] && out2+=("<big>${ron}</big> <b>3 px</b>,jgctl item_radius 3;$me") || out2+=("<big>${roff}</big> 3 px,jgctl item_radius 3;$me")
[[ "$IRADIUS" == 4 ]] && out2+=("<big>${ron}</big> <b>4 px</b>,jgctl item_radius 4;$me") || out2+=("<big>${roff}</big> 4 px,jgctl item_radius 4;$me")
[[ "$IRADIUS" == 5 ]] && out2+=("<big>${ron}</big> <b>5 px</b>,jgctl item_radius 5;$me") || out2+=("<big>${roff}</big> 5 px,jgctl item_radius 5;$me")
[[ "$IRADIUS" == 6 ]] && out2+=("<big>${ron}</big> <b>6 px</b>,jgctl item_radius 6;$me") || out2+=("<big>${roff}</big> 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"

View File

@@ -1,7 +1,7 @@
#!/bin/bash
#
# colorizer - set of tools for Mabox (auto)theming
# Copyright (C) 2022-2025 Daniel Napora <napcok@gmail.com>
# Copyright (C) 2022-2026 Daniel Napora <danieln@maboxlinux.org>
#
# 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 <http://www.gnu.org/licenses/>.
. /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+=("<big></big> $QUICK_TWEAKS,^checkout(tweaks)")
out2+=("^sep()")
out2+=("<big></big> $RANDOMIZE,obtctl randomizer;$me")
out2+=("\"\"\"^sep($RAISED_OR_FLAT?)\"\"\"")
[[ "$BEVEL" == "flat" ]] && out2+=("<big></big> $FLAT,obtctl raised 0;$me") || out2+=("<big></big> $FLAT,obtctl raised 0;$me")
[[ "$BEVEL" == "raised" ]] && out2+=("<big></big> $RAISED,obtctl raised 1;$me") || out2+=("<big></big> $RAISED,obtctl raised 1;$me")
[[ "$BEVEL" == "sunken" ]] && out2+=("<big></big> $SUNKEN,obtctl raised 2;$me") || out2+=("<big></big> $SUNKEN,obtctl raised 2;$me")
[[ "$BEVEL" == "flat" ]] && out2+=("<big>${ron}</big> $FLAT,obtctl raised 0;$me") || out2+=("<big>${roff}</big> $FLAT,obtctl raised 0;$me")
[[ "$BEVEL" == "raised" ]] && out2+=("<big>${ron}</big> $RAISED,obtctl raised 1;$me") || out2+=("<big>${roff}</big> $RAISED,obtctl raised 1;$me")
[[ "$BEVEL" == "sunken" ]] && out2+=("<big>${ron}</big> $SUNKEN,obtctl raised 2;$me") || out2+=("<big>${roff}</big> $SUNKEN,obtctl raised 2;$me")
out2+=("^sep($GRADIENT_TYPE)")
[[ "$GRAD" == Solid ]] && out2+=("<big></big> $SOLID_COLOR,obtctl gradient_type solid;$me") || out2+=("<big></big> $SOLID_COLOR,obtctl gradient_type solid;$me")
[[ "$GRAD" == Solid ]] && out2+=("<big>${ron}</big> $SOLID_COLOR,obtctl gradient_type solid;$me") || out2+=("<big>${roff}</big> $SOLID_COLOR,obtctl gradient_type solid;$me")
out2+=("^sep()")
[[ "$GRAD" == Vertical ]] && out2+=("<big></big> $VERTICAL,obtctl gradient_type vertical;$me") || out2+=("<big></big> $VERTICAL,obtctl gradient_type vertical;$me")
[[ "$GRAD" == Horizontal ]] && out2+=("<big></big> $HORIZONTAL,obtctl gradient_type horizontal;$me") || out2+=("<big></big> $HORIZONTAL,obtctl gradient_type horizontal;$me")
[[ "$GRAD" == MirrorHorizontal ]] && out2+=("<big></big> $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me") || out2+=("<big></big> $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me")
[[ "$GRAD" == SplitVertical ]] && out2+=("<big></big> $SPLITVERTICAL,obtctl gradient_type splitvertical;$me") || out2+=("<big></big> $SPLITVERTICAL,obtctl gradient_type splitvertical;$me")
[[ "$GRAD" == Diagonal ]] && out2+=("<big></big> $DIAGONAL,obtctl gradient_type diagonal;$me") || out2+=("<big></big> $DIAGONAL,obtctl gradient_type diagonal;$me")
[[ "$GRAD" == CrossDiagonal ]] && out2+=("<big></big> $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me") || out2+=("<big></big> $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me")
[[ "$GRAD" == Pyramid ]] && out2+=("<big></big> $PYRAMID,obtctl gradient_type pyramid;$me") || out2+=("<big></big> $PYRAMID,obtctl gradient_type pyramid;$me")
[[ "$GRAD" == Vertical ]] && out2+=("<big>${ron}</big> $VERTICAL,obtctl gradient_type vertical;$me") || out2+=("<big>${roff}</big> $VERTICAL,obtctl gradient_type vertical;$me")
[[ "$GRAD" == Horizontal ]] && out2+=("<big>${ron}</big> $HORIZONTAL,obtctl gradient_type horizontal;$me") || out2+=("<big>${roff}</big> $HORIZONTAL,obtctl gradient_type horizontal;$me")
[[ "$GRAD" == MirrorHorizontal ]] && out2+=("<big>${ron}</big> $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me") || out2+=("<big>${roff}</big> $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me")
[[ "$GRAD" == SplitVertical ]] && out2+=("<big>${ron}</big> $SPLITVERTICAL,obtctl gradient_type splitvertical;$me") || out2+=("<big>${roff}</big> $SPLITVERTICAL,obtctl gradient_type splitvertical;$me")
[[ "$GRAD" == Diagonal ]] && out2+=("<big>${ron}</big> $DIAGONAL,obtctl gradient_type diagonal;$me") || out2+=("<big>${roff}</big> $DIAGONAL,obtctl gradient_type diagonal;$me")
[[ "$GRAD" == CrossDiagonal ]] && out2+=("<big>${ron}</big> $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me") || out2+=("<big>${roff}</big> $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me")
[[ "$GRAD" == Pyramid ]] && out2+=("<big>${ron}</big> $PYRAMID,obtctl gradient_type pyramid;$me") || out2+=("<big>${roff}</big> $PYRAMID,obtctl gradient_type pyramid;$me")
#### COLOR SCHEMES 
out+=("<big><span fgcolor='${ABGTO}'></span> <span fgcolor='${ABG}'></span> <span fgcolor='${ABGTO}'></span></big> $THEMES,^checkout(schemes)")
@@ -421,13 +424,13 @@ out+=("<tt><span bgcolor='$NBG'> </span></tt> $INACTIVE_BG,^pipe(mbclr '$
[[ ! -z "$ABGTO" ]] && out+=("<tt><span bgcolor='$NBG'> </span><span bgcolor='$NBGTO'> </span></tt> $INACTIVE_BG_TO,^pipe(mbclr '$NBGTO' obtctl clrnormalbgto '${INACTIVE_BG_TO}' '$me')")
out+=("<tt><span bgcolor='$NBG' fgcolor='$NFG'> <b>title</b> </span></tt> $TEXT_COLOR,^pipe(mbclr '$NFG' obtctl inactivetextcolor '${TEXT} ${INACTIVE_FG}' '$me')")
out+=("^sep()")
[[ "$WEIGHT_INACT" =~ .*"old" ]] && out+=("<big></big> <b>$BOLD</b>,obtctl fontweight_inactive Normal;$me") || out+=("<big></big> <b>$BOLD</b>,obtctl fontweight_inactive Bold;$me")
[[ "$SLANT_INACT" =~ .*"talic" ]] && out+=("<big></big> <i>$ITALIC</i>,obtctl fontslant_inactive Normal;$me") || out+=("<big></big> <i>$ITALIC</i>,obtctl fontslant_inactive Italic;$me")
[[ "$WEIGHT_INACT" =~ .*"old" ]] && out+=("<big>${cbon}</big> <b>$BOLD</b>,obtctl fontweight_inactive Normal;$me") || out+=("<big>${cboff}</big> <b>$BOLD</b>,obtctl fontweight_inactive Bold;$me")
[[ "$SLANT_INACT" =~ .*"talic" ]] && out+=("<big>${cbon}</big> <i>$ITALIC</i>,obtctl fontslant_inactive Normal;$me") || out+=("<big>${cboff}</big> <i>$ITALIC</i>,obtctl fontslant_inactive Italic;$me")
out+=("^sep(Gradient)")
out+=("<big>󰹸</big> $GRADIENT_TYPE [ <b>${GRAD}</b> ],^checkout(gradient)")
out+=("<tt><span bgcolor='#16a084'> </span><span bgcolor='#43a480'> </span><span bgcolor='#5da97b'> </span><span bgcolor='#72ad77'> </span><span bgcolor='#84b171'> </span><span bgcolor='#95b66c'> </span><span bgcolor='#a5ba66'> </span><span bgcolor='#b5be61'> </span><span bgcolor='#c3c15a'> </span><span bgcolor='#d1c753'> </span><span bgcolor='#dfc94c'> </span><span bgcolor='#edce44'> </span><span bgcolor='#f4d03f'> </span></tt> $PRE_GRADIENTS,^pipe(mbgrad ob)")
out+=("<big></big> $GRADIENT_REVERSE,obtctl activegradient '${ABGTO}' '${ABG}';$me")
[[ "${GRAD}" != "Solid" ]] && out+=("<big></big> $GRADIENT_REVERSE,obtctl activegradient '${ABGTO}' '${ABG}';$me")
out+=("^sep($BORDER)")
out+=("<tt><span bgcolor='$ALINE'> </span></tt> $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+=("<big> </big> $LEFT,obtctl textjustify left;$me")||out2+=("<big> </big> $LEFT,obtctl textjustify left;$me")
[[ "$TXTJUST" = center ]] && out2+=("<big> </big> $CENTER,obtctl textjustify center;$me")||out2+=("<big> </big> $CENTER,obtctl textjustify center;$me")
[[ "$TXTJUST" = right ]] && out2+=("<big> </big> $RIGHT,obtctl textjustify right;$me")||out2+=("<big> </big> $RIGHT,obtctl textjustify right;$me")
[[ "$TXTJUST" = left ]] && out2+=("<big>${ron} </big> <b>$LEFT</b>,obtctl textjustify left;$me")||out2+=("<big>${roff} </big> $LEFT,obtctl textjustify left;$me")
[[ "$TXTJUST" = center ]] && out2+=("<big>${ron} </big> <b>$CENTER</b>,obtctl textjustify center;$me")||out2+=("<big>${roff} </big> $CENTER,obtctl textjustify center;$me")
[[ "$TXTJUST" = right ]] && out2+=("<big>${ron} </big> <b>$RIGHT</b>,obtctl textjustify right;$me")||out2+=("<big>${roff} </big> $RIGHT,obtctl textjustify right;$me")
out2+=("^sep($BUTTONS_LAYOUT)")
[[ "$NDSLIMC" == NDSLIMC ]] && out2+=("<big></big> <tt>full </tt> <b>NDSLIMC</b> (default),obtctl ndslimc NDSLIMC;$me") || out2+=("<big></big> <tt>full </tt> <b>NDSLIMC</b> (default),obtctl ndslimc NDSLIMC;$me")
[[ "$NDSLIMC" == DSLIMC ]] && out2+=("<big></big> <tt>full (no icon)</tt> <b>DSLIMC</b>,obtctl ndslimc DSLIMC;$me") || out2+=("<big></big> <tt>full (no icon)</tt> <b>DSLIMC</b>,obtctl ndslimc DSLIMC;$me")
[[ "$NDSLIMC" == NLIMC ]] && out2+=("<big></big> <tt>mini </tt> <b>NLIMC</b>,obtctl ndslimc NLIMC;$me") || out2+=("<big></big> <tt>mini </tt> <b>NLIMC</b>,obtctl ndslimc NLIMC;$me")
[[ "$NDSLIMC" == LIMC ]] && out2+=("<big></big> <tt>mini (no icon)</tt> <b>LIMC</b>,obtctl ndslimc LIMC;$me") || out2+=("<big></big> <tt>mini (no icon)</tt> <b>LIMC</b>,obtctl ndslimc LIMC;$me")
[[ "$NDSLIMC" == CMIL ]] && out2+=("<big></big> <tt>crazy </tt> <b>CMIL</b>,obtctl ndslimc CMIL;$me") || out2+=("<big></big> <tt>crazy </tt> <b>CMIL</b>,obtctl ndslimc CMIL;$me")
[[ "$NDSLIMC" == NDSLIMC ]] && out2+=("<big>${ron}</big> <tt>full </tt> <b>NDSLIMC</b> (default),obtctl ndslimc NDSLIMC;$me") || out2+=("<big>${roff}</big> <tt>full </tt> <b>NDSLIMC</b> (default),obtctl ndslimc NDSLIMC;$me")
[[ "$NDSLIMC" == DSLIMC ]] && out2+=("<big>${ron}</big> <tt>full (no icon)</tt> <b>DSLIMC</b>,obtctl ndslimc DSLIMC;$me") || out2+=("<big>${roff}</big> <tt>full (no icon)</tt> <b>DSLIMC</b>,obtctl ndslimc DSLIMC;$me")
[[ "$NDSLIMC" == NLIMC ]] && out2+=("<big>${ron}</big> <tt>mini </tt> <b>NLIMC</b>,obtctl ndslimc NLIMC;$me") || out2+=("<big>${roff}</big> <tt>mini </tt> <b>NLIMC</b>,obtctl ndslimc NLIMC;$me")
[[ "$NDSLIMC" == LIMC ]] && out2+=("<big>${ron}</big> <tt>mini (no icon)</tt> <b>LIMC</b>,obtctl ndslimc LIMC;$me") || out2+=("<big>${roff}</big> <tt>mini (no icon)</tt> <b>LIMC</b>,obtctl ndslimc LIMC;$me")
[[ "$NDSLIMC" == CMIL ]] && out2+=("<big>${ron}</big> <tt>crazy </tt> <b>CMIL</b>,obtctl ndslimc CMIL;$me") || out2+=("<big>${roff}</big> <tt>crazy </tt> <b>CMIL</b>,obtctl ndslimc CMIL;$me")
out2+=("^sep(<small>$LEGEND</small>)")
out2+=("^sep(N:<small> Window icon</small>)")
out2+=("^sep(L:<small> Window label (Title)</small>)")
@@ -497,7 +500,7 @@ out2+=("^sep()")
sizes=(16 15 14 13 12 11 10 9 8)
for i in "${sizes[@]}"
do
[[ "$FSIZE" == "$i" ]] && out2+=("<big></big> <b>$i px</b>,obtctl fontsize $i;$me") || out2+=("<big></big> $i px,obtctl fontsize $i;$me")
[[ "$FSIZE" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,obtctl fontsize $i;$me") || out2+=("<big>${roff}</big> $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+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,obtctl fontfamily \"${fon}\";$me")
[[ "${FNAME}" == "$fon" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,obtctl fontfamily \"${fon}\";$me")
done
fi
out2+=("^sep()")
[[ "$WEIGHT" =~ .*"old" ]] && out2+=("<big></big> <b>$BOLD</b>,obtctl fontweight Normal;$me") || out2+=("<big></big> <b>$BOLD</b>,obtctl fontweight Bold;$me")
[[ "$SLANT" =~ .*"talic" ]] && out2+=("<big></big> <i>$ITALIC</i>,obtctl fontslant Normal;$me") || out2+=("<big></big> <i>$ITALIC</i>,obtctl fontslant Italic;$me")
[[ "$WEIGHT" =~ .*"old" ]] && out2+=("<big>${cbon}</big> <b>$BOLD</b>,obtctl fontweight Normal;$me") || out2+=("<big>${cboff}</big> <b>$BOLD</b>,obtctl fontweight Bold;$me")
[[ "$SLANT" =~ .*"talic" ]] && out2+=("<big>${cbon}</big> <i>$ITALIC</i>,obtctl fontslant Normal;$me") || out2+=("<big>${cboff}</big> <i>$ITALIC</i>,obtctl fontslant Italic;$me")
#SHADOW
out2+=("^sep($TEXTALIGN)")
[[ "$TXTJUST" = left ]] && out2+=("<big> </big> $LEFT,obtctl textjustify left;$me")||out2+=("<big> </big> $LEFT,obtctl textjustify left;$me")
[[ "$TXTJUST" = center ]] && out2+=("<big> </big> $CENTER,obtctl textjustify center;$me")||out2+=("<big> </big> $CENTER,obtctl textjustify center;$me")
[[ "$TXTJUST" = right ]] && out2+=("<big> </big> $RIGHT,obtctl textjustify right;$me")||out2+=("<big> </big> $RIGHT,obtctl textjustify right;$me")
[[ "$TXTJUST" = left ]] && out2+=("<big>${ron} </big> <b>$LEFT</b>,obtctl textjustify left;$me")||out2+=("<big>${roff} </big> $LEFT,obtctl textjustify left;$me")
[[ "$TXTJUST" = center ]] && out2+=("<big>${ron} </big> <b>$CENTER</b>,obtctl textjustify center;$me")||out2+=("<big>${roff} </big> $CENTER,obtctl textjustify center;$me")
[[ "$TXTJUST" = right ]] && out2+=("<big>${ron} </big> <b>$RIGHT</b>,obtctl textjustify right;$me")||out2+=("<big>${roff} </big> $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+=("<big>${ron}</big> <b>0 px</b>,obtctl paddingHeight 0;$me") || out2+=("<big>${roff}</big> 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+=("<big>${ron}</big> <b>$ph px</b>,obtctl paddingHeight ${ph};$me") || out2+=("<big>${roff}</big> ${ph} px,obtctl paddingHeight ${ph};$me")
done
out2+=("^sep($HORIZONTAL)")
out2+=("0,obtctl paddingWidth 0;$me")
[[ "${PWIDTH}" == 0 ]] && out2+=("<big>${ron}</big> <b>0 px</b>,obtctl paddingWidth 0;$me") || out2+=("<big>${roff}</big> 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+=("<big>${ron}</big> <b>$pw px</b>,obtctl paddingWidth ${pw};$me") || out2+=("<big>${roff}</big> ${pw} px,obtctl paddingWidth ${pw};$me")
done
#BORDER
out2+=("^tag(border)")
out2+=("^sep($BORDER)")
out2+=("0,obtctl borderWidth 0;$me")
[[ "${BORD}" == 0 ]] && out2+=("<big>${ron}</big> <b>0 px</b>,obtctl borderWidth 0;$me") || out2+=("<big>${roff}</big> 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+=("<big>${ron}</big> <b>${bor} px</b>,obtctl borderWidth ${bor};$me") || out2+=("<big>${roff}</big> ${bor} px,obtctl borderWidth ${bor};$me")
done
#GRADIENT
out2+=("^tag(gradient)")
out2+=("^sep($GRADIENT_TYPE)")
[[ "$GRAD" == Solid ]] && out2+=("<big></big> $SOLID_COLOR,obtctl gradient_type solid;$me") || out2+=("<big></big> $SOLID_COLOR,obtctl gradient_type solid;$me")
[[ "$GRAD" == Solid ]] && out2+=("<big>${ron}</big> <b>$SOLID_COLOR</b>,obtctl gradient_type solid;$me") || out2+=("<big>${roff}</big> $SOLID_COLOR,obtctl gradient_type solid;$me")
out2+=("^sep()")
[[ "$GRAD" == Vertical ]] && out2+=("<big></big> $VERTICAL,obtctl gradient_type vertical;$me") || out2+=("<big></big> $VERTICAL,obtctl gradient_type vertical;$me")
[[ "$GRAD" == Horizontal ]] && out2+=("<big></big> $HORIZONTAL,obtctl gradient_type horizontal;$me") || out2+=("<big></big> $HORIZONTAL,obtctl gradient_type horizontal;$me")
[[ "$GRAD" == MirrorHorizontal ]] && out2+=("<big></big> $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me") || out2+=("<big></big> $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me")
[[ "$GRAD" == SplitVertical ]] && out2+=("<big></big> $SPLITVERTICAL,obtctl gradient_type splitvertical;$me") || out2+=("<big></big> $SPLITVERTICAL,obtctl gradient_type splitvertical;$me")
[[ "$GRAD" == Diagonal ]] && out2+=("<big></big> $DIAGONAL,obtctl gradient_type diagonal;$me") || out2+=("<big></big> $DIAGONAL,obtctl gradient_type diagonal;$me")
[[ "$GRAD" == CrossDiagonal ]] && out2+=("<big></big> $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me") || out2+=("<big></big> $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me")
[[ "$GRAD" == Pyramid ]] && out2+=("<big></big> $PYRAMID,obtctl gradient_type pyramid;$me") || out2+=("<big></big> $PYRAMID,obtctl gradient_type pyramid;$me")
[[ "$GRAD" == Vertical ]] && out2+=("<big>${ron}</big> <b>$VERTICAL</b>,obtctl gradient_type vertical;$me") || out2+=("<big>${roff}</big> $VERTICAL,obtctl gradient_type vertical;$me")
[[ "$GRAD" == Horizontal ]] && out2+=("<big>${ron}</big> <b>$HORIZONTAL</b>,obtctl gradient_type horizontal;$me") || out2+=("<big>${roff}</big> $HORIZONTAL,obtctl gradient_type horizontal;$me")
[[ "$GRAD" == MirrorHorizontal ]] && out2+=("<big>${ron}</big> <b>$MIRRORHORIZONTAL</b>,obtctl gradient_type mirrorhorizontal;$me") || out2+=("<big>${roff}</big> $MIRRORHORIZONTAL,obtctl gradient_type mirrorhorizontal;$me")
[[ "$GRAD" == SplitVertical ]] && out2+=("<big>${ron}</big> <b>$SPLITVERTICAL</b>,obtctl gradient_type splitvertical;$me") || out2+=("<big>${roff}</big> $SPLITVERTICAL,obtctl gradient_type splitvertical;$me")
[[ "$GRAD" == Diagonal ]] && out2+=("<big>${ron}</big> <b>$DIAGONAL</b>,obtctl gradient_type diagonal;$me") || out2+=("<big>${roff}</big> $DIAGONAL,obtctl gradient_type diagonal;$me")
[[ "$GRAD" == CrossDiagonal ]] && out2+=("<big>${ron}</big> <b>$CROSSDIAGONAL</b>,obtctl gradient_type crossdiagonal;$me") || out2+=("<big>${roff}</big> $CROSSDIAGONAL,obtctl gradient_type crossdiagonal;$me")
[[ "$GRAD" == Pyramid ]] && out2+=("<big>${ron}</big> <b>$PYRAMID</b>,obtctl gradient_type pyramid;$me") || out2+=("<big>${roff}</big> $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+=("<big>${ron}</big> <b>0 px</b>,obtctl handlewidth 0;$me") || out2+=("<big>${roff}</big> 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+=("<big>${ron}</big> <b>${hdl} px</b>,obtctl handlewidth ${hdl};$me") || out2+=("<big>${roff}</big> ${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+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,$me") || out+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,obtctl fontfamily \"${fon}\";$me")
[[ "${FNAME}" == "$fon" ]] && out+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,obtctl fontfamily \"${fon}\";$me")
done
fi
out+=("^sep()")
[[ "$WEIGHT" =~ .*"old" ]] && out+=("<big></big> <b>$BOLD</b>,obtctl fontweight Normal;$me") || out+=("<big></big> <b>$BOLD</b>,obtctl fontweight Bold;$me")
[[ "$SLANT" =~ .*"talic" ]] && out+=("<big></big> <i>$ITALIC</i>,obtctl fontslant Normal;$me") || out+=("<big></big> <i>$ITALIC</i>,obtctl fontslant Italic;$me")
[[ "$WEIGHT" =~ .*"old" ]] && out+=("<big>${cbon}</big> <b>$BOLD</b>,obtctl fontweight Normal;$me") || out+=("<big>${cboff}</big> <b>$BOLD</b>,obtctl fontweight Bold;$me")
[[ "$SLANT" =~ .*"talic" ]] && out+=("<big>${cbon}</big> <i>$ITALIC</i>,obtctl fontslant Normal;$me") || out+=("<big>${cboff}</big> <i>$ITALIC</i>,obtctl fontslant Italic;$me")
out+=("^sep()")
out+=("$FONTSIZE [ <b>$FSIZE px</b> ],^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+=("<big></big> <b>$i px</b>,obtctl fontsize $i;$me") || out2+=("<big></big> $i px,obtctl fontsize $i;$me")
[[ "$FSIZE" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,obtctl fontsize $i;$me") || out2+=("<big>${roff}</big> $i px,obtctl fontsize $i;$me")
done
out+=("^sep($BUTTONS_LAYOUT)")
[[ "$NDSLIMC" == NDSLIMC ]] && out+=("<big></big> <tt>full </tt> <b>NDSLIMC</b> (default),obtctl ndslimc NDSLIMC;$me") || out+=("<big></big> <tt>full </tt> <b>NDSLIMC</b> (default),obtctl ndslimc NDSLIMC;$me")
[[ "$NDSLIMC" == NLIMC ]] && out+=("<big></big> <tt>mini </tt> <b>NLIMC</b>,obtctl ndslimc NLIMC;$me") || out+=("<big></big> <tt>mini </tt> <b>NLIMC</b>,obtctl ndslimc NLIMC;$me")
[[ "$NDSLIMC" == LIMC ]] && out+=("<big></big> <tt>mini (no icon)</tt> <b>LIMC</b>,obtctl ndslimc LIMC;$me") || out+=("<big></big> <tt>mini (no icon)</tt> <b>LIMC</b>,obtctl ndslimc LIMC;$me")
[[ "$NDSLIMC" == CMIL ]] && out+=("<big></big> <tt>crazy </tt> <b>CMIL</b>,obtctl ndslimc CMIL;$me") || out+=("<big></big> <tt>crazy </tt> <b>CMIL</b>,obtctl ndslimc CMIL;$me")
[[ "$NDSLIMC" == NDSLIMC ]] && out+=("<big>${ron}</big> <tt>full </tt> <b>NDSLIMC</b> (default),obtctl ndslimc NDSLIMC;$me") || out+=("<big>${roff}</big> <tt>full </tt> <b>NDSLIMC</b> (default),obtctl ndslimc NDSLIMC;$me")
[[ "$NDSLIMC" == NLIMC ]] && out+=("<big>${ron}</big> <tt>mini </tt> <b>NLIMC</b>,obtctl ndslimc NLIMC;$me") || out+=("<big>${roff}</big> <tt>mini </tt> <b>NLIMC</b>,obtctl ndslimc NLIMC;$me")
[[ "$NDSLIMC" == LIMC ]] && out+=("<big>${ron}</big> <tt>mini (no icon)</tt> <b>LIMC</b>,obtctl ndslimc LIMC;$me") || out+=("<big>${roff}</big> <tt>mini (no icon)</tt> <b>LIMC</b>,obtctl ndslimc LIMC;$me")
[[ "$NDSLIMC" == CMIL ]] && out+=("<big>${ron}</big> <tt>crazy </tt> <b>CMIL</b>,obtctl ndslimc CMIL;$me") || out+=("<big>${roff}</big> <tt>crazy </tt> <b>CMIL</b>,obtctl ndslimc CMIL;$me")
out+=("^sep(<small>$LEGEND</small>)")
out+=("^sep(N:<small> Window icon</small>)")
out+=("^sep(L:<small> Window label (Title)</small>)")
@@ -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()")