allow menufg/menubg to be configurable; from Alexander Polakov.
ok oga@
This commit is contained in:
parent
9ab59987f7
commit
107bc37429
@ -1,4 +1,4 @@
|
|||||||
.\" $OpenBSD: cwmrc.5,v 1.39 2011/09/03 09:20:58 okan Exp $
|
.\" $OpenBSD: cwmrc.5,v 1.40 2011/09/08 12:07:03 okan Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 2004,2005 Marius Aamodt Eriksen <marius@monkey.org>
|
.\" Copyright (c) 2004,2005 Marius Aamodt Eriksen <marius@monkey.org>
|
||||||
.\"
|
.\"
|
||||||
@ -14,7 +14,7 @@
|
|||||||
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.Dd $Mdocdate: September 3 2011 $
|
.Dd $Mdocdate: September 8 2011 $
|
||||||
.Dt CWMRC 5
|
.Dt CWMRC 5
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -105,6 +105,12 @@ Set the color of the border while grouping a window.
|
|||||||
.It Ic color inactiveborder Ar color
|
.It Ic color inactiveborder Ar color
|
||||||
Set the color of the inactive border.
|
Set the color of the inactive border.
|
||||||
.Pp
|
.Pp
|
||||||
|
.It Ic color menubg Ar color
|
||||||
|
Set menu background color.
|
||||||
|
.Pp
|
||||||
|
.It Ic color menufg Ar color
|
||||||
|
Set menu foreground color.
|
||||||
|
.Pp
|
||||||
.It Ic color ungroupborder Ar color
|
.It Ic color ungroupborder Ar color
|
||||||
Set the color of the border while ungrouping a window.
|
Set the color of the border while ungrouping a window.
|
||||||
.Pp
|
.Pp
|
||||||
|
@ -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>
|
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
|
||||||
@ -73,6 +73,7 @@ typedef struct {
|
|||||||
%token COLOR SNAPDIST
|
%token COLOR SNAPDIST
|
||||||
%token ACTIVEBORDER INACTIVEBORDER
|
%token ACTIVEBORDER INACTIVEBORDER
|
||||||
%token GROUPBORDER UNGROUPBORDER
|
%token GROUPBORDER UNGROUPBORDER
|
||||||
|
%token MENUBG MENUFG
|
||||||
%token ERROR
|
%token ERROR
|
||||||
%token <v.string> STRING
|
%token <v.string> STRING
|
||||||
%token <v.number> NUMBER
|
%token <v.number> NUMBER
|
||||||
@ -184,6 +185,14 @@ colors : ACTIVEBORDER STRING {
|
|||||||
free(conf->color[CWM_COLOR_BORDER_UNGROUP].name);
|
free(conf->color[CWM_COLOR_BORDER_UNGROUP].name);
|
||||||
conf->color[CWM_COLOR_BORDER_UNGROUP].name = $2;
|
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},
|
{ "groupborder", GROUPBORDER},
|
||||||
{ "ignore", IGNORE},
|
{ "ignore", IGNORE},
|
||||||
{ "inactiveborder", INACTIVEBORDER},
|
{ "inactiveborder", INACTIVEBORDER},
|
||||||
|
{ "menubg", MENUBG},
|
||||||
|
{ "menufg", MENUFG},
|
||||||
{ "mousebind", MOUSEBIND},
|
{ "mousebind", MOUSEBIND},
|
||||||
{ "moveamount", MOVEAMOUNT},
|
{ "moveamount", MOVEAMOUNT},
|
||||||
{ "no", NO},
|
{ "no", NO},
|
||||||
|
Loading…
Reference in New Issue
Block a user