diff options
| -rw-r--r-- | config.arg.h | 4 | ||||
| -rw-r--r-- | config.default.h | 4 | ||||
| -rw-r--r-- | draw.c | 8 | ||||
| -rw-r--r-- | dwm.h | 3 | ||||
| -rw-r--r-- | main.c | 4 |
5 files changed, 11 insertions, 12 deletions
diff --git a/config.arg.h b/config.arg.h index 92f01b7..e65b989 100644 --- a/config.arg.h +++ b/config.arg.h | |||
| @@ -10,12 +10,12 @@ const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL }; | |||
| 10 | #define TILESYMBOL "[]=" | 10 | #define TILESYMBOL "[]=" |
| 11 | 11 | ||
| 12 | #define FONT "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*" | 12 | #define FONT "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*" |
| 13 | #define NORMBORDERCOLOR "#333" | ||
| 13 | #define NORMBGCOLOR "#222" | 14 | #define NORMBGCOLOR "#222" |
| 14 | #define NORMFGCOLOR "#ccc" | 15 | #define NORMFGCOLOR "#ccc" |
| 16 | #define SELBORDERCOLOR "#9cf" | ||
| 15 | #define SELBGCOLOR "#444" | 17 | #define SELBGCOLOR "#444" |
| 16 | #define SELFGCOLOR "#fff" | 18 | #define SELFGCOLOR "#fff" |
| 17 | #define STATUSBGCOLOR "#333" | ||
| 18 | #define STATUSFGCOLOR "#9cf" | ||
| 19 | 19 | ||
| 20 | #define MASTER 600 /* per thousand */ | 20 | #define MASTER 600 /* per thousand */ |
| 21 | #define MODKEY Mod1Mask | 21 | #define MODKEY Mod1Mask |
diff --git a/config.default.h b/config.default.h index afd8e85..98135b0 100644 --- a/config.default.h +++ b/config.default.h | |||
| @@ -10,12 +10,12 @@ const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL }; | |||
| 10 | #define TILESYMBOL "[]=" | 10 | #define TILESYMBOL "[]=" |
| 11 | 11 | ||
| 12 | #define FONT "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*" | 12 | #define FONT "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*" |
| 13 | #define NORMBORDERCOLOR "#dddddd" | ||
| 13 | #define NORMBGCOLOR "#333366" | 14 | #define NORMBGCOLOR "#333366" |
| 14 | #define NORMFGCOLOR "#cccccc" | 15 | #define NORMFGCOLOR "#cccccc" |
| 16 | #define SELBORDERCOLOR "#222222" | ||
| 15 | #define SELBGCOLOR "#666699" | 17 | #define SELBGCOLOR "#666699" |
| 16 | #define SELFGCOLOR "#eeeeee" | 18 | #define SELFGCOLOR "#eeeeee" |
| 17 | #define STATUSBGCOLOR "#dddddd" | ||
| 18 | #define STATUSFGCOLOR "#222222" | ||
| 19 | 19 | ||
| 20 | #define MASTER 600 /* per thousand */ | 20 | #define MASTER 600 /* per thousand */ |
| 21 | #define MODKEY Mod1Mask | 21 | #define MODKEY Mod1Mask |
| @@ -120,7 +120,7 @@ drawstatus(void) { | |||
| 120 | dc.x += dc.w; | 120 | dc.x += dc.w; |
| 121 | } | 121 | } |
| 122 | dc.w = bmw; | 122 | dc.w = bmw; |
| 123 | drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.status, False, False); | 123 | drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.norm, False, False); |
| 124 | x = dc.x + dc.w; | 124 | x = dc.x + dc.w; |
| 125 | dc.w = textw(stext); | 125 | dc.w = textw(stext); |
| 126 | dc.x = bw - dc.w; | 126 | dc.x = bw - dc.w; |
| @@ -128,7 +128,7 @@ drawstatus(void) { | |||
| 128 | dc.x = x; | 128 | dc.x = x; |
| 129 | dc.w = bw - x; | 129 | dc.w = bw - x; |
| 130 | } | 130 | } |
| 131 | drawtext(stext, dc.status, False, False); | 131 | drawtext(stext, dc.norm, False, False); |
| 132 | if((dc.w = dc.x - x) > bh) { | 132 | if((dc.w = dc.x - x) > bh) { |
| 133 | dc.x = x; | 133 | dc.x = x; |
| 134 | drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False); | 134 | drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm, False, False); |
| @@ -141,10 +141,10 @@ void | |||
| 141 | drawclient(Client *c) { | 141 | drawclient(Client *c) { |
| 142 | if(c == sel && issel) { | 142 | if(c == sel && issel) { |
| 143 | drawstatus(); | 143 | drawstatus(); |
| 144 | XSetWindowBorder(dpy, c->win, dc.sel[ColBG]); | 144 | XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); |
| 145 | return; | 145 | return; |
| 146 | } | 146 | } |
| 147 | XSetWindowBorder(dpy, c->win, dc.norm[ColBG]); | 147 | XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]); |
| 148 | XSync(dpy, False); | 148 | XSync(dpy, False); |
| 149 | } | 149 | } |
| 150 | 150 | ||
| @@ -43,7 +43,7 @@ | |||
| 43 | enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ | 43 | enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ |
| 44 | enum { WMProtocols, WMDelete, WMLast }; /* default atoms */ | 44 | enum { WMProtocols, WMDelete, WMLast }; /* default atoms */ |
| 45 | enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ | 45 | enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ |
| 46 | enum { ColFG, ColBG, ColLast }; /* color */ | 46 | enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ |
| 47 | 47 | ||
| 48 | typedef enum { | 48 | typedef enum { |
| 49 | TopLeft, TopRight, BotLeft, BotRight | 49 | TopLeft, TopRight, BotLeft, BotRight |
| @@ -66,7 +66,6 @@ typedef struct { | |||
| 66 | int x, y, w, h; | 66 | int x, y, w, h; |
| 67 | unsigned long norm[ColLast]; | 67 | unsigned long norm[ColLast]; |
| 68 | unsigned long sel[ColLast]; | 68 | unsigned long sel[ColLast]; |
| 69 | unsigned long status[ColLast]; | ||
| 70 | Drawable drawable; | 69 | Drawable drawable; |
| 71 | Fnt font; | 70 | Fnt font; |
| 72 | GC gc; | 71 | GC gc; |
| @@ -121,12 +121,12 @@ setup(void) { | |||
| 121 | seltag = emallocz(sizeof(Bool) * ntags); | 121 | seltag = emallocz(sizeof(Bool) * ntags); |
| 122 | seltag[0] = True; | 122 | seltag[0] = True; |
| 123 | /* style */ | 123 | /* style */ |
| 124 | dc.norm[ColBorder] = getcolor(NORMBORDERCOLOR); | ||
| 124 | dc.norm[ColBG] = getcolor(NORMBGCOLOR); | 125 | dc.norm[ColBG] = getcolor(NORMBGCOLOR); |
| 125 | dc.norm[ColFG] = getcolor(NORMFGCOLOR); | 126 | dc.norm[ColFG] = getcolor(NORMFGCOLOR); |
| 127 | dc.sel[ColBorder] = getcolor(SELBORDERCOLOR); | ||
| 126 | dc.sel[ColBG] = getcolor(SELBGCOLOR); | 128 | dc.sel[ColBG] = getcolor(SELBGCOLOR); |
| 127 | dc.sel[ColFG] = getcolor(SELFGCOLOR); | 129 | dc.sel[ColFG] = getcolor(SELFGCOLOR); |
| 128 | dc.status[ColBG] = getcolor(STATUSBGCOLOR); | ||
| 129 | dc.status[ColFG] = getcolor(STATUSFGCOLOR); | ||
| 130 | setfont(FONT); | 130 | setfont(FONT); |
| 131 | /* geometry */ | 131 | /* geometry */ |
| 132 | sx = sy = 0; | 132 | sx = sy = 0; |
