From 33550720c20ff3170761dcccfd472cb54ca59255 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sat, 9 Sep 2023 16:01:49 +0200 Subject: [PATCH] colorizer-menus reorder --- bin/colorizer-menus | 378 +++++++++++++++++++++----------------------- 1 file changed, 184 insertions(+), 194 deletions(-) diff --git a/bin/colorizer-menus b/bin/colorizer-menus index 3fe1517..6e89819 100755 --- a/bin/colorizer-menus +++ b/bin/colorizer-menus @@ -262,135 +262,183 @@ fi out+=("^sep($MENU_THEME: ${jgmenu_theme})") out+=("$QUICK_TWEAKS,^checkout(tweaks)") -out2+=("^tag(tweaks)") -out2+=("^sep(Overall style)") - -###### -out2+=("$BORDER [ ${jgtools_border:-0}px ],^checkout(mborder)") -out2+=("$PADDING [ ${jgtools_padding:-0}px ],^checkout(mpadding)") -#out2+=("$RADIUS [ ${jgtools_radius:-0} ],^checkout(mradius)") -out2+=("$SUBSPACING [ ${submenu_spacing:-0}px ],^checkout(subspacing)") -out2+=("^sep()") -out2+=("$LINE_HEIGHT [ $item_height_factor% ],^checkout(lineheight)") -out2+=("^sep()") -out2+=("$ARROW_STRING [ $arrow_string ],^checkout(arrow)") -out2+=("$ARROW_STRING_LEFT [ $arrow_string_left ],^checkout(arrowleft)") + out2+=("^tag(tweaks)") + out2+=("^sep(Overall style)") + ###### + out2+=("$BORDER [ ${jgtools_border:-0}px ],^checkout(mborder)") + out2+=("$PADDING [ ${jgtools_padding:-0}px ],^checkout(mpadding)") + #out2+=("$RADIUS [ ${jgtools_radius:-0} ],^checkout(mradius)") + out2+=("$SUBSPACING [ ${submenu_spacing:-0}px ],^checkout(subspacing)") + out2+=("^sep()") + out2+=("$LINE_HEIGHT [ $item_height_factor% ],^checkout(lineheight)") + out2+=("^sep()") + out2+=("$ARROW_STRING [ $arrow_string ],^checkout(arrow)") + out2+=("$ARROW_STRING_LEFT [ $arrow_string_left ],^checkout(arrowleft)") -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" "mb-setvar jgtools_border=${i};$me")") || out3+=(" $(printf "%3s,%s" "$i" "mb-setvar jgtools_border=${i};$me")");done + 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" "mb-setvar jgtools_border=${i};$me")") || out3+=(" $(printf "%3s,%s" "$i" "mb-setvar jgtools_border=${i};$me")");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" "mb-setvar jgtools_padding=${i};$me")") || out3+=(" $(printf "%3s,%s" "$i" "mb-setvar jgtools_padding=${i};$me")");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" "mb-setvar jgtools_padding=${i};$me")") || out3+=(" $(printf "%3s,%s" "$i" "mb-setvar jgtools_padding=${i};$me")");done -#out3+=("^tag(mradius)") -#out3+=("^sep($RADIUS)") -#for i in 0 1 2 3 4 6 8 12 14 16 18 20 40; do out3+=("$(printf "%3s,%s" "$i" "mb-setvar jgtools_radius=${i};$me")");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 -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 + 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 + + out3+=("^tag(arrow)") + out3+=("^sep($ARROW_STRING)") + for i in "" "" "" "" "" "" "󰔰" "󰮺" "" "壟" "" "" "" "" "" "󰋇" "..." ":." "." "+" "^" "-" "_" "" "" "󰞔" "" ""; do [[ "$arrow_string" == $i ]] && out3+=(">> $i <<,$me") || out3+=(" $i,mb-setvar arrow_string=${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 - -out3+=("^tag(arrow)") -out3+=("^sep($ARROW_STRING)") -for i in "" "" "" "" "" "" "󰔰" "󰮺" "" "壟" "" "" "" "" "" "󰋇" "..." ":." "." "+" "^" "-" "_" "" "" "󰞔" "" ""; do [[ "$arrow_string" == $i ]] && out3+=(">> $i <<,$me") || out3+=(" $i,mb-setvar arrow_string=${i};$me");done + out3+=("^tag(arrowleft)") + out3+=("^sep($ARROW_STRING_LEFT)") + for i in "" "" "" "" "" "" "󰶢" "󰮹" "" "鹿" "" "" "" "" "" "󰩔"; do [[ "$arrow_string_left" == $i ]] && out3+=(">> $i <<,$me") || out3+=(" $i,mb-setvar arrow_string_left=${i};$me");done -out3+=("^tag(arrowleft)") -out3+=("^sep($ARROW_STRING_LEFT)") -for i in "" "" "" "" "" "" "󰶢" "󰮹" "" "鹿" "" "" "" "" "" "󰩔"; do [[ "$arrow_string_left" == $i ]] && out3+=(">> $i <<,$me") || out3+=(" $i,mb-setvar arrow_string_left=${i};$me");done + out2+=("^sep()") + out2+=("$MBG_OPACITY,^checkout(mbgopacity") + out3+=("^tag(mbgopacity)") + out3+=("^sep(mbgopacity)") + out3+=("100% Opaque,jgctl tweak opacity 100;$me") + out3+=("90%,jgctl tweak opacity 90;$me") + out3+=("80%,jgctl tweak opacity 80;$me") + out3+=("60%,jgctl tweak opacity 60;$me") + out3+=("50%,jgctl tweak opacity 50;$me") + out3+=("40%,jgctl tweak opacity 40;$me") + out3+=("30%,jgctl tweak opacity 30;$me") + out3+=("20%,jgctl tweak opacity 20;$me") + out3+=("10%,jgctl tweak opacity 10;$me") + out3+=("0% Fully transparent,jgctl tweak opacity 0;$me") -out2+=("^sep()") -out2+=("$MBG_OPACITY,^checkout(mbgopacity") -out3+=("^tag(mbgopacity)") -out3+=("^sep(mbgopacity)") -out3+=("100% Opaque,jgctl tweak opacity 100;$me") -out3+=("90%,jgctl tweak opacity 90;$me") -out3+=("80%,jgctl tweak opacity 80;$me") -out3+=("60%,jgctl tweak opacity 60;$me") -out3+=("50%,jgctl tweak opacity 50;$me") -out3+=("40%,jgctl tweak opacity 40;$me") -out3+=("30%,jgctl tweak opacity 30;$me") -out3+=("20%,jgctl tweak opacity 20;$me") -out3+=("10%,jgctl tweak opacity 10;$me") -out3+=("0% Fully transparent,jgctl tweak opacity 0;$me") - -out2+=("^sep()") -out2+=("Solid Color,jgctl tweak solid;$me") -out2+=("Gradient,jgctl tweak gradient;$me") + out2+=("^sep()") + out2+=("Solid Color,jgctl tweak solid;$me") + out2+=("Gradient,jgctl tweak gradient;$me") -out2+=("^sep($SIZING)") -out2+=("$WIDE,jgctl tweak sizing wide;$me") -out2+=("$NORMAL,jgctl tweak sizing normal;$me") -out2+=("$TIGHT,jgctl tweak sizing tight;$me") + out2+=("^sep($SIZING)") + out2+=("$WIDE,jgctl tweak sizing wide;$me") + out2+=("$NORMAL,jgctl tweak sizing normal;$me") + out2+=("$TIGHT,jgctl tweak sizing tight;$me") #### COLOR SCHEMES  out+=(" $SCHEMES,^checkout(schemes)") -out2+=("^tag(schemes)") -out2+=("^sep($SCHEMES)") -out2+=("^sep($SYSTEM_SCHEMES)") + out2+=("^tag(schemes)") + out2+=("^sep($SCHEMES)") + out2+=("^sep($SYSTEM_SCHEMES)") -n=1 -while IFS="|" read -r mbg mbgt mborder tbg tfg tborder normbg nfg sbg sfg sborder sepfg grad scheme_name -do -((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="";; -esac -out2+=("$(printf '%-20s' "${scheme_name}") item title [ sel ] ${icon} ,jgctl applyscheme sys $n;$me") -done < <(tail -n +2 "$SYSSCHEMES") + n=1 + while IFS="|" read -r mbg mbgt mborder tbg tfg tborder normbg nfg sbg sfg sborder sepfg grad scheme_name + do + ((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="";; + esac + out2+=("$(printf '%-20s' "${scheme_name}") item title [ sel ] ${icon} ,jgctl applyscheme sys $n;$me") + done < <(tail -n +2 "$SYSSCHEMES") -out2+=("^sep($YOUR_SCHEMES)") -out2+=(" $SAVE_CURRSCHEME,jgctl savescheme '${currcolors}';$me") -out2+=(" $OPEN_SCHEMEFILE,xdg-open $USERSCHEMES") -out2+=("^sep()") -n=1 -while IFS="|" read -r mbg mbgt mborder tbg tfg tborder normbg nfg sbg sfg sborder sepfg grad scheme_name -do -((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="";; -esac -out2+=("$(printf '%-20s' "${scheme_name}") item title [ sel ] ${icon} ,^checkout(sch${n})") -out3+=("^tag(sch${n}") -out3+=("^sep($COLORSCHEME: ${scheme_name})") -out3+=(" $APPLY_SCHEME,jgctl applyscheme usr ${n};$me") -out3+=("^sep($DELETE)") -out3+=("󰗨 $DELETE_SCHEME ${scheme_name},jgctl delscheme ${n};$me") -done < <(tail -n +2 "$USERSCHEMES") + out2+=("^sep($YOUR_SCHEMES)") + out2+=(" $SAVE_CURRSCHEME,jgctl savescheme '${currcolors}';$me") + out2+=(" $OPEN_SCHEMEFILE,xdg-open $USERSCHEMES") + out2+=("^sep()") + n=1 + while IFS="|" read -r mbg mbgt mborder tbg tfg tborder normbg nfg sbg sfg sborder sepfg grad scheme_name + do + ((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="";; + esac + out2+=("$(printf '%-20s' "${scheme_name}") item title [ sel ] ${icon} ,^checkout(sch${n})") + out3+=("^tag(sch${n}") + out3+=("^sep($COLORSCHEME: ${scheme_name})") + out3+=(" $APPLY_SCHEME,jgctl applyscheme usr ${n};$me") + out3+=("^sep($DELETE)") + out3+=("󰗨 $DELETE_SCHEME ${scheme_name},jgctl delscheme ${n};$me") + done < <(tail -n +2 "$USERSCHEMES") -out2+=("^sep($GENERATEFROMWP)") -out2+=(" $LIGHTBG ,w2theme menu light;$me") -out2+=(" $DARKBG ,w2theme menu dark;$me") + out2+=("^sep($GENERATEFROMWP)") + out2+=(" $LIGHTBG ,w2theme menu light;$me") + out2+=(" $DARKBG ,w2theme menu dark;$me") +out+=("^sep($FONTS)") +out+=("󰛖 $TITLE [ $menu_sep_font_family $menu_sep_font_size ],^checkout(mtitlefont)") +out+=("󰛖 $ITEM [ $menu_font_family $menu_font_size ],^checkout(mitemfont)") + + # Item font submenu + out2+=("^tag(mitemfont)") + out2+=("^sep($ITEM_FONT)") + out2+=("󰛖 $FONT_CUSTOM,mb-setfont menu_item;$me") + out2+=("^sep($FONT_SIZE)") + out2+=("󰧴 $INCREASE $((menu_font_size+1)) px,mb-setvar menu_font_size=$((menu_font_size+1));$me") + out2+=("󰧳 $DECREASE $((menu_font_size-1)) px,mb-setvar menu_font_size=$((menu_font_size-1));$me") + out2+=("^sep()") + 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") + done + if [ -f "$HOME/.config/mabox/fonts.list" ];then + mapfile -t favfonts < <( grep -vE "^($|#)" ~/.config/mabox/fonts.list) + else + mapfile -t favfonts < <( grep -vE "^($|#)" /usr/share/mabox-colorizer/fonts.list) + cp /usr/share/mabox-colorizer/fonts.list ~/.config/mabox/ + fi + + 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") + done + fi + + out2+=("^tag(mtitlefont)") + out2+=("^sep($TITLE_FONT)") + out2+=("󰛖 $FONT_CUSTOM,mb-setfont menu_sep;$me") + + out2+=("^sep($FONT_SIZE)") + out2+=("󰧴 $INCREASE $((menu_sep_font_size+1)) px,mb-setvar menu_sep_font_size=$((menu_sep_font_size+1));$me") + out2+=("󰧳 $DECREASE $((menu_sep_font_size-1)) px,mb-setvar menu_sep_font_size=$((menu_sep_font_size-1));$me") + out2+=("^sep()") + 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") + 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") + done + fi + +### MENU out+=("^sep(Menu)") out+=("$(printf '%3s' "$MBGA") $COLOR_MENU_BG,^pipe(mbclr '$MBG' jgctl color_menu_bg '${COLOR_MENU_BG}' '$me')") out+=("$(printf '%3s' "$MBGTA") $COLOR_MENU_BG_TO,^pipe(mbclr '$MBGT' jgctl color_menu_bg_to '${COLOR_MENU_BG_TO}' '$me')") @@ -411,95 +459,12 @@ case "$GRADIENT" in bottom_right)icon="";; esac -out+=("$icon $GRADIENT_POS [ $GRADIENT ],^checkout(gradientpos)") - +out+=("$icon $GRADIENT_POS [ $GRADIENT ],^checkout(gradientpos)") out+=(" $GRADIENT_REVERSE,jgctl gradient '${MBGT}' '${MBG}';$me") - out+=(" $PRE_GRADIENTS,^pipe(mbgrad menu)") - -out+=("^sep($ITEM)") - -out+=("$(printf '%3s' "$NFGA") AbCd $COLOR_NORM_FG,^pipe(mbclr '$NFG' jgctl color_norm_fg '${COLOR_NORM_FG}' '$me')") - - -out+=("^sep()") -[[ ! -z "$NORMBG" ]] && out+=("$(printf '%3s' "$NORMBGA") $COLOR_NORM_BG,^pipe(mbclr '$NORMBG' jgctl color_norm_bg '${COLOR_NORM_BG}' '$me')" "^sep()") -out+=("$I_BORDER [ $IBORDER ] $I_RADIUS [ $IRADIUS ],^checkout(itemborder_radius)") - -out+=("^sep($SEL_ITEM)") -out+=("$(printf '%3s' "$SBGA") $COLOR_SEL_BG,^pipe(mbclr '$SBG' jgctl color_sel_bg '${COLOR_SEL_BG}' '$me')") -out+=("$(printf '%3s' "$SFGA") AbCd $COLOR_SEL_FG,^pipe(mbclr '$SFG' jgctl color_sel_fg '${COLOR_SEL_FG}' '$me')") -if [[ "$IBORDER" != "0" ]];then -out+=("$(printf '%3s' "$SBORDERA") $COLOR_SEL_BORDER,^pipe(mbclr '$SBORDER' jgctl color_sel_border '${COLOR_SEL_BORDER}' '$me')") -fi -out+=("^sep()") -out+=("Apply accent preset,^checkout(sel_accents)") - -out2+=("^tag(sel_accents)") -out2+=("^sep(Accent presets)") -while IFS="," read -r BG FG BGNAME FGNAME -do -[[ "$BGNAME" == "" ]] && BGNAME=${BG} -[[ "$FGNAME" == "" ]] && FGNAME=${FG} -out2+=(" $(printf '%*s' 25 "${FGNAME} on ${BGNAME}") ,jgctl accent '${BG}' '${FG}';$me") -out21+=(" $(printf '%*s' 25 "${BGNAME} on ${FGNAME}") ,jgctl accent '${FG}' '${BG}';$me") -done < <(tail -n +2 /usr/share/mabox-colorizer/readable_colors.csv) -out2+=("${out21[@]}") - -# Item font submenu -out2+=("^tag(mitemfont)") -out2+=("^sep($ITEM_FONT)") -out2+=("󰛖 $FONT_CUSTOM,mb-setfont menu_item;$me") -out2+=("^sep($FONT_SIZE)") -out2+=("󰧴 $INCREASE $((menu_font_size+1)) px,mb-setvar menu_font_size=$((menu_font_size+1));$me") -out2+=("󰧳 $DECREASE $((menu_font_size-1)) px,mb-setvar menu_font_size=$((menu_font_size-1));$me") -out2+=("^sep()") -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") -done - -if [ -f "$HOME/.config/mabox/fonts.list" ];then - mapfile -t favfonts < <( grep -vE "^($|#)" ~/.config/mabox/fonts.list) -else - mapfile -t favfonts < <( grep -vE "^($|#)" /usr/share/mabox-colorizer/fonts.list) - cp /usr/share/mabox-colorizer/fonts.list ~/.config/mabox/ -fi - -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") - done -fi - - +### TITLE/SEPARATOR out+=("^sep($SEPARATOR_TITLE)") - - -out2+=("^tag(mtitlefont)") -out2+=("^sep($TITLE_FONT)") -out2+=("󰛖 $FONT_CUSTOM,mb-setfont menu_sep;$me") - -out2+=("^sep($FONT_SIZE)") -out2+=("󰧴 $INCREASE $((menu_sep_font_size+1)) px,mb-setvar menu_sep_font_size=$((menu_sep_font_size+1));$me") -out2+=("󰧳 $DECREASE $((menu_sep_font_size-1)) px,mb-setvar menu_sep_font_size=$((menu_sep_font_size-1));$me") -out2+=("^sep()") -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") -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") - done -fi - out+=("$(printf '%3s' "$TBGA") $COLOR_TITLE_BG,^pipe(mbclr '$TBG' jgctl color_title_bg '${COLOR_TITLE_BG}' '$me')") out+=("$(printf '%3s' "$TFGA") AbCd $COLOR_TITLE_FG,^pipe(mbclr '$TFG' jgctl color_title_fg '${COLOR_TITLE_FG}' '$me')") out+=("$(printf '%3s' "$TBORDERA") $COLOR_TITLE_BORDER,^pipe(mbclr '$TBORDER' jgctl color_title_border '${COLOR_TITLE_BORDER}' '$me')") @@ -516,9 +481,34 @@ out+=("^sep()") out+=("$(printf '%3s' "$SEPFGA") ------ ${COLOR_SEP_FG},^pipe(mbclr '$SEPFG' jgctl color_sep_fg '${COLOR_SEP_FG}' '$me')") -out+=("^sep($FONTS)") -out+=("󰛖 $TITLE [ $menu_sep_font_family $menu_sep_font_size ],^checkout(mtitlefont)") -out+=("󰛖 $ITEM [ $menu_font_family $menu_font_size ],^checkout(mitemfont)") +### SELECTED ITEM (ACCENT) +out+=("^sep($SEL_ITEM)") +out+=("$(printf '%3s' "$SBGA") $COLOR_SEL_BG,^pipe(mbclr '$SBG' jgctl color_sel_bg '${COLOR_SEL_BG}' '$me')") +out+=("$(printf '%3s' "$SFGA") AbCd $COLOR_SEL_FG,^pipe(mbclr '$SFG' jgctl color_sel_fg '${COLOR_SEL_FG}' '$me')") +if [[ "$IBORDER" != "0" ]];then +out+=("$(printf '%3s' "$SBORDERA") $COLOR_SEL_BORDER,^pipe(mbclr '$SBORDER' jgctl color_sel_border '${COLOR_SEL_BORDER}' '$me')") +fi +out+=("^sep()") +out+=("Apply accent preset,^checkout(sel_accents)") + + out2+=("^tag(sel_accents)") + out2+=("^sep(Accent presets)") + while IFS="," read -r BG FG BGNAME FGNAME + do + [[ "$BGNAME" == "" ]] && BGNAME=${BG} + [[ "$FGNAME" == "" ]] && FGNAME=${FG} + out2+=(" $(printf '%*s' 25 "${FGNAME} on ${BGNAME}") ,jgctl accent '${BG}' '${FG}';$me") + out21+=(" $(printf '%*s' 25 "${BGNAME} on ${FGNAME}") ,jgctl accent '${FG}' '${BG}';$me") + done < <(tail -n +2 /usr/share/mabox-colorizer/readable_colors.csv) + out2+=("${out21[@]}") + +### ITEM +out+=("^sep($ITEM)") +out+=("$(printf '%3s' "$NFGA") AbCd $COLOR_NORM_FG,^pipe(mbclr '$NFG' jgctl color_norm_fg '${COLOR_NORM_FG}' '$me')") +out+=("^sep()") +[[ ! -z "$NORMBG" ]] && out+=("$(printf '%3s' "$NORMBGA") $COLOR_NORM_BG,^pipe(mbclr '$NORMBG' jgctl color_norm_bg '${COLOR_NORM_BG}' '$me')" "^sep()") +out+=("$I_BORDER [ $IBORDER ] $I_RADIUS [ $IRADIUS ],^checkout(itemborder_radius)") +