After losing my beloved 5+ year Gentoo install to a hardware failure, I've gone to FreeBSD. I felt this was the next logical step in my exploration and use of source based operating systems. In reading all the associated documentation for FreeBSD, while installing the XOrg Server, the 5.6 – Using Fonts in XOrg section caught my attention. Having realized I never added the line:
Section "Files"
FontPath "/usr/share/fonts/...."
EndSection
for any fonts on my Gentoo install, I now understand why my DE looked like crap. Being a disabled one handed typist makes it tougher on me to edit the Files Section
by hand, and I would prefer to add fonts by hand as a last resort. As such, is there a way to add the output from fc-list : file
to the Files Section of xorg.conf
using either a tool someone created that I have yet to find, or some fancy shell script etc that the readers here are so good at crafting?
Note: I use nvidia-xconfig
to generate my xorg.conf
file, so it's far from the modular approach recommended nowadays. Can I mix and match the conf.d approach with the generated config if need be?
Best Answer
If I am understanding the question, and you have vim installed on the system (this could work with
vi
as well, as these are justex
commands)Running the below command at a terminal, will:
xorg.conf
- obviously replace this with the file you want to modify. Note: this filexorg.conf
will not be modified, in case something goes wrong with the script./tmp/temp_xorg.conf
If after these operations, you are satisfied with the state of
/tmp/temp_xorg.conf
you could copy it to the location of your real, working xorg config file.run the commands
run this at a shell prompt to produce fontpaths directories which are in a format that can go in an xorg conf file (thanks to @meuh for this command).
then run this command, which will take the output of the above command and insert it into the "Files" sections
so if for example,
xorg.conf
looked like this:After running the above command
/tmp/temp_xorg.conf
should look like this: