# HG changeset patch # User paulo # Date 1347952652 25200 # Node ID da0e0496f75b996492204d971ee14078279366e9 # Parent ed4f1bf80e57cd4fed9f45f0c74930aa3ac29492 add "inverse" color set, for indicating in the status bar when in command mode diff -r ed4f1bf80e57 -r da0e0496f75b config.h --- a/config.h Tue Jul 05 01:11:23 2011 -0700 +++ b/config.h Tue Sep 18 00:17:32 2012 -0700 @@ -11,6 +11,9 @@ #define SELBORDERCOLOR "#ff0000" #define SELBGCOLOR "#222222" #define SELFGCOLOR "#00ff00" +#define INVBORDERCOLOR "#aaaaaa" +#define INVBGCOLOR "#007777" +#define INVFGCOLOR "#dddd00" #define TOPBAR True /* False */ #define TASKBAR True /* False */ #define CLICK_TO_FOCUS True /* False */ diff -r ed4f1bf80e57 -r da0e0496f75b draw.c --- a/draw.c Tue Jul 05 01:11:23 2011 -0700 +++ b/draw.c Tue Sep 18 00:17:32 2012 -0700 @@ -90,7 +90,7 @@ if((dc.w = dc.x - x) > bh) { dc.x = x; - drawtext(sel ? sel->name : NULL, sel ? dc.sel : dc.norm); + drawtext(sel ? sel->name : NULL, (getkeymode() == COMMANDMODE) ? dc.inv : (sel ? dc.sel : dc.norm)); } XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, sw, bh, 0, 0); diff -r ed4f1bf80e57 -r da0e0496f75b dwm.h --- a/dwm.h Tue Jul 05 01:11:23 2011 -0700 +++ b/dwm.h Tue Sep 18 00:17:32 2012 -0700 @@ -60,6 +60,7 @@ int x, y, w, h; unsigned long norm[ColLast]; unsigned long sel[ColLast]; + unsigned long inv[ColLast]; Drawable drawable; Fnt font; GC gc; diff -r ed4f1bf80e57 -r da0e0496f75b main.c --- a/main.c Tue Jul 05 01:11:23 2011 -0700 +++ b/main.c Tue Sep 18 00:17:32 2012 -0700 @@ -181,6 +181,9 @@ dc.sel[ColBorder] = initcolor(SELBORDERCOLOR); dc.sel[ColBG] = initcolor(SELBGCOLOR); dc.sel[ColFG] = initcolor(SELFGCOLOR); + dc.inv[ColBorder] = initcolor(INVBORDERCOLOR); + dc.inv[ColBG] = initcolor(INVBGCOLOR); + dc.inv[ColFG] = initcolor(INVFGCOLOR); initfont(FONT); /* geometry */ sx = sy = 0;