index.md (1099B)
1 Change font in config.h 2 ======================= 3 Towards the beginning of **config.h**, you will find a line defining the 4 variable 5 6 static const char font[] = "..." 7 8 By using **xfontsel**, you can produce a font line for the font you would like 9 to be used by **dwm** when displaying text in the menubar. 10 11 For example, to change the font to 'fixed', you can change the value of font 12 to: 13 14 static const char font[] = "-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1"; 15 16 The following patch also produces the same result: 17 18 --- a/config.def.h Mon Jul 28 20:23:16 2008 +0100 19 +++ b/config.def.h Mon Jul 28 20:45:27 2008 +0100 20 @@ -1,7 +1,7 @@ 21 /* See LICENSE file for copyright and license details. */ 22 23 /* appearance */ 24 -static const char font[] = "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"; 25 +static const char font[] = "-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1"; 26 static const char normbordercolor[] = "#cccccc"; 27 static const char normbgcolor[] = "#cccccc"; 28 static const char normfgcolor[] = "#000000";