Install icon-font for i3 workspaces automatically

I use the latest version of the font where the codepoints are still
2-bytes long!!!

The I use the technique described in the source to configure the icons
in my i3 config.

Source: http://kumarcode.com/Adding-your-custom-font-to-i3status/
This commit is contained in:
2022-11-21 19:46:23 +01:00
parent 30175567de
commit 646c4c62f0

View File

@@ -33,6 +33,14 @@ else
i3status \ i3status \
rofi \ rofi \
enpass enpass
# install icon-font which I use for i3status
MATERIAL_DESIGN_FONT_ZIP=MaterialDesign-Webfont-4.9.95.zip
curl -sSL --output-dir $HOME/Downloads -o "$MATERIAL_DESIGN_FONT_ZIP" https://github.com/Templarian/MaterialDesign-Webfont/archive/v4.9.95.zip
mkdir -p $HOME/.local/share/fonts || true
unzip -jod $HOME/.local/share/fonts/ "$HOME/Downloads/$MATERIAL_DESIGN_FONT_ZIP" MaterialDesign-Webfont-4.9.95/fonts/materialdesignicons-webfont.ttf
fc-cache -fv
# handle work-setup
while true while true
do do
echo "" echo ""
@@ -51,6 +59,8 @@ else
*) echo "Please answer yes or no.";; *) echo "Please answer yes or no.";;
esac esac
done done
# handle cli's for clouds
while true while true
do do
echo "" echo ""