ohmyksh/extensions/fonts.ksh

11 lines
258 B
Bash
Executable File

if [ ! -z $DISPLAY ]; then
[[ -d ~/.fonts ]] && xset +fp ~/.fonts 2>/dev/null
[[ -d ~/.local/share/fonts ]] && xset +fp ~/.local/share/fonts/ 2>/dev/null
for font in /usr/local/share/fonts/*; do
xset +fp "${font}" 2>/dev/null
done
xset fp rehash
fi