glyphicons

This commit is contained in:
2026-04-12 16:20:51 +02:00
parent 169f1713c5
commit eb758ac162
5 changed files with 111 additions and 113 deletions

View File

@@ -16,7 +16,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
source ~/.config/mabox/mabox.conf
. /usr/share/mb-jgtools/jgtools.inc
SYSSCHEMES="/usr/share/mabox-colorizer/colorschemes/conky.csv"
#USERSCHEMES="$HOME/.config/colorizer/conky/c_userschemes.csv"
@@ -385,7 +386,7 @@ if pgrep -u $USER -af "conky.*mbcolor" >/dev/null; then
sizes=(12 11 10 9 8)
for i in "${sizes[@]}"
do
[[ "$FONTSIZE" == "$i" ]] && out2+=("<big></big> <b>$i px</b>,conkyctl basefont_size_all $i;$me") || out2+=("<big></big> $i px,conkyctl basefont_size_all $i;$me")
[[ "$FONTSIZE" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,conkyctl basefont_size_all $i;$me") || out2+=("<big>${roff}</big> $i px,conkyctl basefont_size_all $i;$me")
done
if [ -f "$HOME/.config/mabox/fonts.list" ];then
mapfile -t favfonts < <( grep -vE "^($|#)" ~/.config/mabox/fonts.list)
@@ -397,37 +398,37 @@ if pgrep -u $USER -af "conky.*mbcolor" >/dev/null; then
if [ "${#favfonts[@]}" -gt 0 ];then
out2+=("^sep($FONTFAMILY_LBL)")
for fon in "${favfonts[@]}";do
[[ "$FONT" == "$fon" ]] && out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,conkyctl basefont_family_all \"${fon}\";$me")
[[ "$FONT" == "$fon" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl basefont_family_all \"${fon}\";$me")
done
fi
out2+=("^sep()")
out2+=("<small> $_EDIT_FAVFONTS</small>,geany ~/.config/mabox/fonts.list")
[[ "$SHADOWS" == "shadow" ]] && out+=("<big>󰄲</big> $SHADOW,conkyctl shades_all no;$me") || out+=("<big>󰄱</big> $SHADOW,conkyctl shades_all shadow;$me")
[[ "$SHADOWS" == "outline" ]] && out+=("<big>󰄲</big> $OLINE,conkyctl shades_all no;$me") || out+=("<big>󰄱</big> $OLINE,conkyctl shades_all outline;$me")
[[ "$SHADOWS" == "shadow" ]] && out+=("<big>${cbon}</big> $SHADOW,conkyctl shades_all no;$me") || out+=("<big>${cboff}</big> $SHADOW,conkyctl shades_all shadow;$me")
[[ "$SHADOWS" == "outline" ]] && out+=("<big>${cbon}</big> $OLINE,conkyctl shades_all no;$me") || out+=("<big>${cboff}</big> $OLINE,conkyctl shades_all outline;$me")
out+=("^sep()")
[[ "$BORD" == false ]] && out+=("<big>󰄱</big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(border)") || out+=("<big>󰄲</big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(border)")
[[ "$BORD" == false ]] && out+=("<big>${cboff}</big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(border)") || out+=("<big>${cbon}</big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(border)")
out2+=("^tag(border)")
out2+=("^sep($DRAW $BORDERS?)")
[[ "$BORD" == false ]] && out2+=("<big></big> $YES,conkyctl draw_borders_all true;$me") || out2+=("<big></big> $YES,conkyctl draw_borders_all false;$me")
[[ "$BORD" == false ]] && out2+=("<big></big> $NO,conkyctl draw_borders_all true;$me") || out2+=("<big></big> $NO,conkyctl draw_borders_all false;$me")
[[ "$BORD" == false ]] && out2+=("<big>${roff}</big> $YES,conkyctl draw_borders_all true;$me") || out2+=("<big>${ron}</big> $YES,conkyctl draw_borders_all false;$me")
[[ "$BORD" == false ]] && out2+=("<big>${ron}</big> $NO,conkyctl draw_borders_all true;$me") || out2+=("<big>${roff}</big> $NO,conkyctl draw_borders_all false;$me")
out2+=("^sep($_BORDER_WIDTH)")
[[ "${BWIDTH}" == "1" ]] && out2+=("<big></big> <b>1 px</b> ${_OLD_STYLE}") || out2+=("<big></big> 1 px ${_OLD_STYLE},conkyctl border_width_all 1")
[[ "${BWIDTH}" == "1" ]] && out2+=("<big>${ron}</big> <b>1 px</b> ${_OLD_STYLE}") || out2+=("<big>${roff}</big> 1 px ${_OLD_STYLE},conkyctl border_width_all 1")
for i in 2 4 6 8 10;do
[[ "${BWIDTH}" == "${i}" ]] && out2+=("<big></big> <b>${i} px</b>") || out2+=("<big></big> ${i} px,conkyctl border_width_all ${i}")
[[ "${BWIDTH}" == "${i}" ]] && out2+=("<big>${ron}</big> <b>${i} px</b>") || out2+=("<big>${roff}</big> ${i} px,conkyctl border_width_all ${i}")
done
out2+=("^sep($STIPPLED_BORDERS?)")
[[ "$STIP" == 0 ]] && out2+=("<big></big> 0 ($SOLID_LINE),conkyctl stippled_borders_all 0;$me") || out2+=("<big></big> 0 ($SOLID_LINE),conkyctl stippled_borders_all 0;$me")
[[ "$STIP" == 0 ]] && out2+=("<big>${ron}</big> 0 ($SOLID_LINE),conkyctl stippled_borders_all 0;$me") || out2+=("<big>${roff}</big> 0 ($SOLID_LINE),conkyctl stippled_borders_all 0;$me")
out2+=("^sep()")
[[ "$STIP" == 1 ]] && out2+=("<big></big> 1 px,conkyctl stippled_borders_all 1;$me") || out2+=("<big></big> 1 px,conkyctl stippled_borders_all 1;$me")
[[ "$STIP" == 2 ]] && out2+=("<big></big> 2 px,conkyctl stippled_borders_all 2;$me") || out2+=("<big></big> 2 px,conkyctl stippled_borders_all 2;$me")
[[ "$STIP" == 3 ]] && out2+=("<big></big> 3 px,conkyctl stippled_borders_all 3;$me") || out2+=("<big></big> 3 px,conkyctl stippled_borders_all 3;$me")
[[ "$STIP" == 4 ]] && out2+=("<big></big> 4 px,conkyctl stippled_borders_all 4;$me") || out2+=("<big></big> 4 px,conkyctl stippled_borders_all 4;$me")
[[ "$STIP" == 1 ]] && out2+=("<big>${ron}</big> 1 px,conkyctl stippled_borders_all 1;$me") || out2+=("<big>${roff}</big> 1 px,conkyctl stippled_borders_all 1;$me")
[[ "$STIP" == 2 ]] && out2+=("<big>${ron}</big> 2 px,conkyctl stippled_borders_all 2;$me") || out2+=("<big>${roff}</big> 2 px,conkyctl stippled_borders_all 2;$me")
[[ "$STIP" == 3 ]] && out2+=("<big>${ron}</big> 3 px,conkyctl stippled_borders_all 3;$me") || out2+=("<big>${roff}</big> 3 px,conkyctl stippled_borders_all 3;$me")
[[ "$STIP" == 4 ]] && out2+=("<big>${ron}</big> 4 px,conkyctl stippled_borders_all 4;$me") || out2+=("<big>${roff}</big> 4 px,conkyctl stippled_borders_all 4;$me")
out+=("^sep()")
out+=("<big><span bgcolor='$WINCLR' bgalpha='${bga}%'><span bgcolor='$CLR'> </span> <span fgcolor='$CLR0'>󰎡</span> <span fgcolor='$CLR1'>󰎤</span> <span fgcolor='$CLR2'>󰎧</span> <span bgcolor='$CLR'> </span></span></big> $REGENERATE,^checkout(regenconky)")
@@ -480,7 +481,7 @@ if pgrep -u $USER -af "conky.*mbcolor" >/dev/null; then
else
out+=("$BACKGROUND <span> transparent </span> ,^pipe(mbclr '$WINCLR' conkyctl win_bgcolor_all '${BACKGROUND}' '$me')")
fi
[[ "$WINTRANS" == false ]] && out+=("<big>󰄱</big> $TRANSPARENT,conkyctl transparent_all true;$me") || out+=("<big>󰄲</big> $TRANSPARENT,conkyctl transparent_all false;$me")
[[ "$WINTRANS" == false ]] && out+=("<big>${cboff}</big> $TRANSPARENT,conkyctl transparent_all true;$me") || out+=("<big>${cbon}</big> $TRANSPARENT,conkyctl transparent_all false;$me")
out+=("^sep()")
if [[ "${recolor3}" == "1" ]];then
@@ -498,10 +499,10 @@ if pgrep -u $USER -af "conky.*mbcolor" >/dev/null; then
out+=(" $_ADVANCED,^checkout(adv)")
out2+=("^tag(adv)")
out2+=("^sep($_ADVANCED)")
[[ "${conky_leftclick}" == "off" ]] && out2+=("<big>󰄱</big> $_C_LCLICK,mb-setvar conky_leftclick=on;$me") || out2+=("<big>󰄲</big> $_C_LCLICK,mb-setvar conky_leftclick=off;$me")
[[ "${conky_rightclick}" == "off" ]] && out2+=("<big>󰄱</big> $_C_RCLICK,mb-setvar conky_rightclick=on;$me") || out2+=("<big>󰄲</big> $_C_RCLICK,mb-setvar conky_rightclick=off;$me")
[[ "${conky_leftclick}" == "off" ]] && out2+=("<big>${cboff}</big> $_C_LCLICK,mb-setvar conky_leftclick=on;$me") || out2+=("<big>${cbon}</big> $_C_LCLICK,mb-setvar conky_leftclick=off;$me")
[[ "${conky_rightclick}" == "off" ]] && out2+=("<big>${cboff}</big> $_C_RCLICK,mb-setvar conky_rightclick=on;$me") || out2+=("<big>${cbon}</big> $_C_RCLICK,mb-setvar conky_rightclick=off;$me")
out+=("^sep()")
[[ "${conky_basicmode}" == "on" ]] && out2+=("<big>󰄲</big> $_C_SIMPLIFIEDMENU,mb-setvar conky_basicmode=off;$me") || out2+=("<big>󰄱</big> $_C_SIMPLIFIEDMENU,mb-setvar conky_basicmode=on;$me")
[[ "${conky_basicmode}" == "on" ]] && out2+=("<big>${cbon}</big> $_C_SIMPLIFIEDMENU,mb-setvar conky_basicmode=off;$me") || out2+=("<big>${cboff}</big> $_C_SIMPLIFIEDMENU,mb-setvar conky_basicmode=on;$me")
@@ -540,8 +541,6 @@ fi
### RUN
if [[ "$1" == "-s" ]]; then
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
. $HOME/.config/mabox/mabox.conf
source $HOME/.config/colorizer/colorizer.conf