diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2011-09-08 12:35:34 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2011-09-08 12:35:34 +0000 |
commit | 02af3f817b7b372e650b7f425cd7fd1a78509f2d (patch) | |
tree | 2eaa4d06a5ab626ee582fbd76382343a4bb1ef36 /app/cwm/parse.y | |
parent | 9514b1f2cf6ce055da79bfcf3bf3b02300178c8c (diff) |
allow configurable menu font color; from Alexander Polakov with a tweak
from me.
ok oga@
Diffstat (limited to 'app/cwm/parse.y')
-rw-r--r-- | app/cwm/parse.y | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/cwm/parse.y b/app/cwm/parse.y index dd6547c45..1cddf10a6 100644 --- a/app/cwm/parse.y +++ b/app/cwm/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.32 2011/09/08 12:07:03 okan Exp $ */ +/* $OpenBSD: parse.y,v 1.33 2011/09/08 12:35:33 okan Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -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}, |