removed a bunch of lines, made mode symbols configurable
This commit is contained in:
parent
d37dfa1bed
commit
aa471f2d65
|
@ -15,6 +15,8 @@ const char *tags[] = { "work", "net", "fnord", NULL };
|
|||
#define NORMFGCOLOR "#cccccc"
|
||||
#define STATUSBGCOLOR "#dddddd"
|
||||
#define STATUSFGCOLOR "#222222"
|
||||
#define FLOATSYMBOL "><"
|
||||
#define TILEDSYMBOL "|="
|
||||
|
||||
#define MODKEY Mod1Mask
|
||||
#define MASTERW 60 /* percent */
|
||||
|
|
|
@ -15,6 +15,8 @@ const char *tags[] = { "1", "2", "3", "4", "5", NULL };
|
|||
#define NORMFGCOLOR "#cccccc"
|
||||
#define STATUSBGCOLOR "#dddddd"
|
||||
#define STATUSFGCOLOR "#222222"
|
||||
#define FLOATSYMBOL "~"
|
||||
#define TILEDSYMBOL "#"
|
||||
|
||||
#define MODKEY Mod1Mask
|
||||
#define MASTERW 60 /* percent */
|
||||
|
|
9
draw.c
9
draw.c
|
@ -94,18 +94,13 @@ drawall()
|
|||
void
|
||||
drawstatus()
|
||||
{
|
||||
static const char *mode[] = { "><", "|=" };
|
||||
int i, x;
|
||||
|
||||
dc.x = dc.y = 0;
|
||||
dc.w = bw;
|
||||
|
||||
if(!modew)
|
||||
modew = textw(mode[0]) > textw(mode[1]) ? textw(mode[0]) : textw(mode[1]);
|
||||
drawtext(mode[arrange == dotile ? 1 : 0], dc.status, False);
|
||||
|
||||
dc.w = 0;
|
||||
dc.x = modew;
|
||||
drawtext(arrange == dotile ? TILEDSYMBOL : FLOATSYMBOL, dc.status, False);
|
||||
dc.w = modew;
|
||||
for(i = 0; i < ntags; i++) {
|
||||
dc.x += dc.w;
|
||||
dc.w = textw(tags[i]);
|
||||
|
|
Loading…
Reference in a new issue