summary refs log tree commit diff
path: root/parse.y
diff options
context:
space:
mode:
authorokan <okan>2011-09-08 12:35:33 +0000
committerokan <okan>2011-09-08 12:35:33 +0000
commit82d31aec1d380bc53a1ccfdabe81e37d9b7213c2 (patch)
treefc9397efe088ac08537cd645464ce6e94c74c4c4 /parse.y
parenta262f8e80cb02238e7b01fde8faf4085115acd1c (diff)
downloadcwm-82d31aec1d380bc53a1ccfdabe81e37d9b7213c2.tar.gz
cwm-82d31aec1d380bc53a1ccfdabe81e37d9b7213c2.tar.xz
cwm-82d31aec1d380bc53a1ccfdabe81e37d9b7213c2.zip
allow configurable menu font color; from Alexander Polakov with a tweak
from me.

ok oga@
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y7
1 files changed, 6 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 43c687e..1b1a249 100644
--- a/parse.y
+++ b/parse.y
@@ -73,7 +73,7 @@ typedef struct {
 %token	COLOR SNAPDIST
 %token	ACTIVEBORDER INACTIVEBORDER
 %token	GROUPBORDER UNGROUPBORDER
-%token	MENUBG MENUFG
+%token	MENUBG MENUFG FONTCOLOR
 %token	ERROR
 %token	<v.string>		STRING
 %token	<v.number>		NUMBER
@@ -193,6 +193,10 @@ colors		: ACTIVEBORDER STRING {
 			free(conf->color[CWM_COLOR_FG_MENU].name);
 			conf->color[CWM_COLOR_FG_MENU].name = $2;
 		}
+		| FONTCOLOR STRING {
+			free(conf->color[CWM_COLOR_FONT].name);
+			conf->color[CWM_COLOR_FONT].name = $2;
+		}
 		;
 %%
 
@@ -232,6 +236,7 @@ lookup(char *s)
 		{ "borderwidth",	BORDERWIDTH},
 		{ "color",		COLOR},
 		{ "command",		COMMAND},
+		{ "font",		FONTCOLOR},
 		{ "fontname",		FONTNAME},
 		{ "gap",		GAP},
 		{ "groupborder",	GROUPBORDER},