2010-05-29 22:10:31 +04:00
|
|
|
/* Copyright ©2009-2010 Kris Maglione <maglione.k at Gmail>
|
|
|
|
* See LICENSE file for license details.
|
|
|
|
*/
|
|
|
|
#include <ixp.h>
|
|
|
|
#include <stuff/clientutil.h>
|
|
|
|
#include <stuff/util.h>
|
|
|
|
#include <stuff/x.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
void
|
|
|
|
client_readconfig(CTuple *norm, CTuple *focus, Font **font) {
|
|
|
|
|
|
|
|
if(norm)
|
2010-06-18 18:57:42 +04:00
|
|
|
loadcolor(norm, readctl("normcolors "), nil);
|
2010-05-29 22:10:31 +04:00
|
|
|
if(focus)
|
2010-06-18 18:57:42 +04:00
|
|
|
loadcolor(focus, readctl("focuscolors "), nil);
|
2010-05-29 22:10:31 +04:00
|
|
|
*font = loadfont(readctl("font "));
|
|
|
|
if(!*font)
|
|
|
|
fatal("Can't load font %q", readctl("font "));
|
|
|
|
sscanf(readctl("fontpad "), "%d %d %d %d",
|
|
|
|
&(*font)->pad.min.x, &(*font)->pad.max.x,
|
|
|
|
&(*font)->pad.min.x, &(*font)->pad.max.y);
|
|
|
|
}
|
|
|
|
|