Closed LukasCBossert closed 3 months ago
Very similar to the homebrew-module I like to have an overview of outdated TeXLive packages.
homebrew
I added two files in items and plugins folder and made them executable. But the number is always 0 and therefore it says, no outdated package:
items
plugins
0
The tlmgr.sh in the plugins-folder
tlmgr.sh
#!/opt/homebrew/bin/bash # plugins source "$CONFIG_DIR/colors.sh" COUNT=$(tlmgr update --list --all --self | grep -c 'local:') #sleep 5 COLOR=$RED case "$COUNT" in [6-9][0-9]) COLOR=$RED ;; [3-5][0-9]) COLOR=$ORANGE ;; [1-2][0-9]) COLOR=$YELLOW ;; [1-9]) COLOR=$WHITE ;; 0) COLOR=$GREEN COUNT= ;; esac sketchybar \ --set $NAME \ label=$COUNT \ icon.color=$COLOR
and the file tlmgr.sh in the folder items:
#!/opt/homebrew/bin/bash ## items # tlmgr=( icon="" # <-- using Nerd-Font-Icon for TeX icon.font="$FONT:normal:30.0" label=? padding_right=15 update_freq=20 script="$PLUGIN_DIR/tlmgr.sh" ) sketchybar --add event tlmgr_update \ --add item tlmgr right \ --set tlmgr "${tlmgr[@]}" \ --subscribe tlmgr tlmgr_update
Bonus points: I also like to get the list of outdated packages when I mouse over the TeX icon. Same goes for the outdated packages of homebrew. But I couldnt figure that out.
Very similar to the
homebrew
-module I like to have an overview of outdated TeXLive packages.I added two files in
items
andplugins
folder and made them executable. But the number is always0
and therefore it says, no outdated package:The
tlmgr.sh
in theplugins
-folderand the file
tlmgr.sh
in the folderitems
:Bonus points: I also like to get the list of outdated packages when I mouse over the TeX icon. Same goes for the outdated packages of homebrew. But I couldnt figure that out.