glyphicons

This commit is contained in:
2026-04-12 16:21:11 +02:00
parent 42f2936f7a
commit f636c6f627
5 changed files with 107 additions and 105 deletions

View File

@@ -3,6 +3,8 @@
# jgcursor pipemenu to configure cursor theme and size
# To hook it into some menu use:
# Cursor,^pipe(jgcursor)
. /usr/share/mb-jgtools/glyphicons.inc
GTK3RC="$HOME/.config/gtk-3.0/settings.ini"
case $LANG in
@@ -28,13 +30,13 @@ while read -r line; do
lin=${line::-8}
li=${lin##*/}
[[ "${CURTHEME}" = "${li}" ]] && o+=("<big></big> <b>${li}</b>") || o+=("<big></big> ${li},mb-cursor theme ${li}")
[[ "${CURTHEME}" = "${li}" ]] && o+=("<big>${ron}</big> <b>${li}</b>") || o+=("<big>${roff}</big> ${li},mb-cursor theme ${li}")
done < <(find /usr/share/icons ~/.local/share/icons ~/.icons -type d -name "cursors")
o+=("^sep($_SIZE)")
for c in 16 24 32 48 64;do
[[ "${CURSIZE}" == "${c}" ]] && o+=("<big></big> <b>${c}</b>") || o+=("<big></big> ${c},mb-cursor size ${c}")
[[ "${CURSIZE}" == "${c}" ]] && o+=("<big>${ron}</big> <b>${c}</b>") || o+=("<big>${roff}</big> ${c},mb-cursor size ${c}")
done
printf "%s\n" "${o[@]}"