aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authorokan2011-09-08 12:07:03 +0000
committerokan2011-09-08 12:07:03 +0000
commitf62e165e708a0095e787f98912d4d2e24c0d8b01 (patch)
treed8366c3060d9bc8b72ee94bfcba7b5ee929d1d81 /parse.y
parent2f671ecd12558466c3b0f38604dedf5f2fab2e59 (diff)
downloadcwm-f62e165e708a0095e787f98912d4d2e24c0d8b01.tar.gz
allow menufg/menubg to be configurable; from Alexander Polakov.
ok oga@
Diffstat (limited to '')
-rw-r--r--parse.y13
1 files changed, 12 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index acec2b2..dd6547c 100644
--- a/parse.y
+++ b/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.31 2011/09/03 09:17:16 okan Exp $ */
+/* $OpenBSD: parse.y,v 1.32 2011/09/08 12:07:03 okan Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -73,6 +73,7 @@ typedef struct {
%token COLOR SNAPDIST
%token ACTIVEBORDER INACTIVEBORDER
%token GROUPBORDER UNGROUPBORDER
+%token MENUBG MENUFG
%token ERROR
%token <v.string> STRING
%token <v.number> NUMBER
@@ -184,6 +185,14 @@ colors : ACTIVEBORDER STRING {
free(conf->color[CWM_COLOR_BORDER_UNGROUP].name);
conf->color[CWM_COLOR_BORDER_UNGROUP].name = $2;
}
+ | MENUBG STRING {
+ free(conf->color[CWM_COLOR_BG_MENU].name);
+ conf->color[CWM_COLOR_BG_MENU].name = $2;
+ }
+ | MENUFG STRING {
+ free(conf->color[CWM_COLOR_FG_MENU].name);
+ conf->color[CWM_COLOR_FG_MENU].name = $2;
+ }
;
%%
@@ -228,6 +237,8 @@ lookup(char *s)
{ "groupborder", GROUPBORDER},
{ "ignore", IGNORE},
{ "inactiveborder", INACTIVEBORDER},
+ { "menubg", MENUBG},
+ { "menufg", MENUFG},
{ "mousebind", MOUSEBIND},
{ "moveamount", MOVEAMOUNT},
{ "no", NO},