You are not logged in.
Pages: 1
Topic closed
I'm a dwm newbie, and I am wondering if it is possible to change the font size of the status bar. I've tried to edit the following:
/* appearance */
static const char font[] = "-*-terminus-*-*-*-*-12-*-*-*-*-*-*-*";
I changed '12' with '14, but after compiling and reinstalling dwm, it didn't seem to have any effect.
Any insight on this would be appreciated :-)
Last edited by hyperreal_logic (2012-06-09 23:25:46)
Offline
Is terminus properly installed? Did you restart dwm? (Silly questions, sorry, but the declaration you used seems OK.)
Just in case... To look up available options for bitmap fonts, use xfontsel. You can adjust the settings there and copy the string to be used in the config.h.
Last edited by bohoomil (2012-06-09 13:27:44)
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
Looks good here too. Perhaps the most likely problem is not having terminus in Xorg's font path.
Terminus does not install into the "normal" arch font path, so you need to add /usr/share/fonts/local.
This is covered in the terminus font wiki page. To verify that this worked, you can try launching a terminal (urxvt/xterm types) with the option "-fn <terminus font string>" to see if it recognizes the font string.
Edit: or check xfontsel to be sure terminus is listed.
Edit2: Another common problem stems from which file is editted. Which config.h did you add that to? The ABS method of recompiling (recommended) creates several copies of config.h. The PKGBUILD only uses the top level config.h. If you edit one of the others, it will be ignored or overwritten. For more info on this see this thread
Last edited by Trilby (2012-06-09 20:07:31)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Looks good here too. Perhaps the most likely problem is not having terminus in Xorg's font path.
Terminus does not install into the "normal" arch font path, so you need to add /usr/share/fonts/local.
This is covered in the terminus font wiki page. To verify that this worked, you can try launching a terminal (urxvt/xterm types) with the option "-fn <terminus font string>" to see if it recognizes the font string.
Edit: or check xfontsel to be sure terminus is listed.
Edit2: Another common problem stems from which file is editted. Which config.h did you add that to? The ABS method of recompiling (recommended) creates several copies of config.h. The PKGBUILD only uses the top level config.h. If you edit one of the others, it will be ignored or overwritten. For more info on this see this thread
I have made sure that terminus was installed correctly, and I also installed several other bitmap fonts. I had to create an xorg.conf file, containing only the entries for each font type (100dpi, TTF, local, etc). I entered the command you mentioned above, and it said 'unable to load base fontset'. I also cannot see any of the bitmap fonts I installed in xfontsel. I did edit the config.h in the topmost level of directories. From ABS, I downloaded and thus created a directory called 'dwm' which contains the PKGBUILD, config.h and some other files in the top immediate directory. This directory is also where I built dwm and installed it with makepkg.
Offline
Offline
Try this in your ~/.xinitrc:
xset +fp /usr/share/fonts/local/
EDIT: Before starting DWM, of course.
Last edited by Unia (2012-06-09 22:57:55)
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
^ what unia (and trilby) said. the wiki says
Some fonts like terminus are installed in /usr/share/fonts/local, which is not added to the font path by default. By adding the following lines to ~/.xinitrc
xset +fp /usr/share/fonts/local xset fp rehash
Offline
Try this in your ~/.xinitrc:
xset +fp /usr/share/fonts/local/
EDIT: Before starting DWM, of course.
This worked!
I edited .xinitrc with
xset +fp /usr/share/fonts/local
but found that if declared globally, it causes some problems with session entries in my .xinitrc. So I had to make sure to put that command in my dwm section of .xinitrc.
Then I edited config.h, changed font to size 14, compiled/reinstalled, and now I have size 14 Terminus font in my status bar. :-D
Special thanks to all who helped!
Offline
^ what unia (and trilby) said. the wiki says
Some fonts like terminus are installed in /usr/share/fonts/local, which is not added to the font path by default. By adding the following lines to ~/.xinitrc
xset +fp /usr/share/fonts/local xset fp rehash
Hi, 2ManyDogs, how is your PS1 working?
Last edited by sleepy_cat (2016-08-08 13:15:25)
Things being equal, the simplest explanation tends to be the right.
Offline
Please do not Necrobump old threads, especially solved ones. Also do not Hijack support threads.
Closed.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Pages: 1
Topic closed