mirror of
https://github.com/0intro/wmii
synced 2024-11-29 00:53:09 +03:00
25 lines
641 B
C
25 lines
641 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("normcolors "));
|
|
if(focus)
|
|
loadcolor(focus, readctl("focuscolors "));
|
|
*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);
|
|
}
|
|
|