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,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/>.
. $HOME/.config/mabox/mabox.conf
. /usr/share/mb-jgtools/jgtools.inc
me="colorizer-fonts -s"
@@ -113,8 +113,8 @@ case "$LANG" in
esac
getvalues () {
GTK2RC="$HOME"/.gtkrc-2.0
GTK_FONT=( $(grep "gtk-font-name" ${GTK2RC} | cut -d'"' -f2) )
GTK3RC="$HOME"/.config/gtk-3.0/settings.ini
GTK_FONT=( $(grep "gtk-font-name" ${GTK3RC} | cut -d'=' -f2) )
GTK_FAMILY=${GTK_FONT[@]::${#GTK_FONT[@]}-1}
GTK_SIZE=${GTK_FONT[-1]}
@@ -210,26 +210,26 @@ out2+=("^sep()")
sizes=(16 15 14 13 12 11 10 9 8)
for i in "${sizes[@]}"
do
[[ "$OBFSIZE" == "$i" ]] && out2+=("<big></big> <b>$i px</b>,obtctl fontsize $i;$me") || out2+=("<big></big> $i px,fontctl ob_fontsize $i;$me")
[[ "$OBFSIZE" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,obtctl fontsize $i;$me") || out2+=("<big>${roff}</big> $i px,fontctl ob_fontsize $i;$me")
done
out2+=("^sep($_FONT_FAMILY)")
if [ "${#favfonts[@]}" -gt 0 ];then
for fon in "${favfonts[@]}";do
[[ "${OBFNAME}" == "$fon" ]] && out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,obtctl fontfamily \"${fon}\";$me")
[[ "${OBFNAME}" == "$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> $_LEFT,obtctl textjustify left;$me")||out2+=("<big>${roff} </big> $_LEFT,obtctl textjustify left;$me")
[[ "$TXTJUST" = center ]] && out2+=("<big>${ron} </big> $_CENTER,obtctl textjustify center;$me")||out2+=("<big>${roff} </big> $_CENTER,obtctl textjustify center;$me")
[[ "$TXTJUST" = right ]] && out2+=("<big>${ron} </big> $_RIGHT,obtctl textjustify right;$me")||out2+=("<big>${roff} </big> $_RIGHT,obtctl textjustify right;$me")
@@ -246,13 +246,13 @@ out2+=("^sep()")
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
out2+=("^sep()")
@@ -273,13 +273,13 @@ out2+=("^sep()")
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 [ "${#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
out2+=("^sep()")
@@ -299,21 +299,21 @@ out2+=("^sep()")
sizes=(14 13 12 11 10 9 8 7 6)
for i in "${sizes[@]}"
do
[[ "$C_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")
[[ "$C_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 [ "${#favfonts[@]}" -gt 0 ];then
out2+=("^sep($_FONT_FAMILY)")
for fon in "${favfonts[@]}";do
[[ "$C_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")
[[ "$C_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")
out2+=("^sep($_C_EFFCTS)")
[[ "$SHADOWS" == "shadow" ]] && out2+=("<big>󰄲</big> $_SHADOW,conkyctl shades_all no;$me") || out2+=("<big>󰄱</big> $_SHADOW,conkyctl shades_all shadow;$me")
[[ "$SHADOWS" == "outline" ]] && out2+=("<big>󰄲</big> $_OUTLINE,conkyctl shades_all no;$me") || out2+=("<big>󰄱</big> $_OUTLINE,conkyctl shades_all outline;$me")
[[ "$SHADOWS" == "shadow" ]] && out2+=("<big>${cbon}</big> $_SHADOW,conkyctl shades_all no;$me") || out2+=("<big>${cboff}</big> $_SHADOW,conkyctl shades_all shadow;$me")
[[ "$SHADOWS" == "outline" ]] && out2+=("<big>${cbon}</big> $_OUTLINE,conkyctl shades_all no;$me") || out2+=("<big>${cboff}</big> $_OUTLINE,conkyctl shades_all outline;$me")
@@ -329,13 +329,13 @@ out2+=("^sep()")
sizes=(14 13 12 11 10 9 8)
for i in "${sizes[@]}"
do
[[ "$GTK_SIZE" == "$i" ]] && out2+=("<big></big> <b>$i px</b>,$me") || out2+=("<big></big> $i px,fontctl gtk_fontsize $i;$me")
[[ "$GTK_SIZE" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,$me") || out2+=("<big>${roff}</big> $i px,fontctl gtk_fontsize $i;$me")
done
if [ "${#favfonts[@]}" -gt 0 ];then
out2+=("^sep($_FONT_FAMILY)")
for fon in "${favfonts[@]}";do
[[ "$GTK_FAMILY" == "$fon" ]] && out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,fontctl gtk_fontfamily \"${fon}\";$me")
[[ "$GTK_FAMILY" == "$fon" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,fontctl gtk_fontfamily \"${fon}\";$me")
done
fi
out2+=("^sep()")
@@ -343,7 +343,6 @@ fi
### RUN
if [[ "$1" == "-s" ]]; then
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
CNF_DIR="$HOME/.config/colorizer"