Font path listing bash script for xorg.conf

FreeBSD 11 here. knoba – XFontPaths.sh – 2016 (link below)
knoba - font path listing bash script for xorg.conf

~§~

Output file.
knoba - font path listing bash script for xorg.conf

~§~

File attributes (-rwxr-x—) “sh XFontPaths.sh” to execute.
knoba - font path listing bash script for xorg.conf

~§~

#!/bin/sh

ls -d /usr/local/share/fonts/*/ > ~/fontpath.txt;
sed -e 's/^/zFontPath "/' ~/fontpath.txt > ~/afontpath.txt;
tr 'z' '\t' < ~/afontpath.txt > ~/bfontpath.txt;
sed -e "s|$|\"|" ~/bfontpath.txt > ~/xfontpath.txt


rm ~/fontpath.txt;
rm ~/afontpath.txt;
rm ~/bfontpath.txt;

~§~

knoba – XFontPaths.sh – 2016

•••

Advertisements