mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
25 lines
691 B
C
25 lines
691 B
C
/* 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)
|
|
loadcolor(norm, readctl("/ctl", "normcolors "), nil);
|
|
if(focus)
|
|
loadcolor(focus, readctl("/ctl", "focuscolors "), nil);
|
|
*font = loadfont(readctl("/ctl", "font "));
|
|
if(!*font)
|
|
fatal("Can't load font %q", readctl("/ctl", "font "));
|
|
sscanf(readctl("/ctl", "fontpad "), "%d %d %d %d",
|
|
&(*font)->pad.min.x, &(*font)->pad.max.x,
|
|
&(*font)->pad.min.x, &(*font)->pad.max.y);
|
|
}
|
|
|