add urgent color cmdline options
Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
parent
5dd3d19ef9
commit
c778de59e3
26
tabbed.1
26
tabbed.1
|
@ -14,14 +14,18 @@ tabbed \- generic tabbed interface
|
||||||
.IR name ]
|
.IR name ]
|
||||||
.RB [ \-p
|
.RB [ \-p
|
||||||
.IR [ s +/- ] pos ]
|
.IR [ s +/- ] pos ]
|
||||||
|
.RB [ \-o
|
||||||
|
.IR normbgcol ]
|
||||||
|
.RB [ \-O
|
||||||
|
.IR normfgcol ]
|
||||||
.RB [ \-t
|
.RB [ \-t
|
||||||
.IR selbgcol ]
|
.IR selbgcol ]
|
||||||
.RB [ \-T
|
.RB [ \-T
|
||||||
.IR selfgcol ]
|
.IR selfgcol ]
|
||||||
.RB [ \-u
|
.RB [ \-u
|
||||||
.IR normbgcol ]
|
.IR urgbgcol ]
|
||||||
.RB [ \-U
|
.RB [ \-U
|
||||||
.IR normfgcol ]
|
.IR urgfgcol ]
|
||||||
.RB [ \-r
|
.RB [ \-r
|
||||||
.IR narg ]
|
.IR narg ]
|
||||||
.IR [ command ... ]
|
.IR [ command ... ]
|
||||||
|
@ -78,20 +82,26 @@ with the window id, rather than appending it to the end.
|
||||||
.B \-s
|
.B \-s
|
||||||
will disable automatic spawning of the command.
|
will disable automatic spawning of the command.
|
||||||
.TP
|
.TP
|
||||||
.BI \-t " selbgcol"
|
.BI \-o " normbgcol"
|
||||||
defines the selected background color.
|
defines the normal background color.
|
||||||
.IR #RGB ,
|
.IR #RGB ,
|
||||||
.IR #RRGGBB ,
|
.IR #RRGGBB ,
|
||||||
and X color names are supported.
|
and X color names are supported.
|
||||||
.TP
|
.TP
|
||||||
|
.BI \-O " normfgcol"
|
||||||
|
defines the normal foreground color.
|
||||||
|
.TP
|
||||||
|
.BI \-t " selbgcol"
|
||||||
|
defines the selected background color.
|
||||||
|
.TP
|
||||||
.BI \-T " selfgbcol"
|
.BI \-T " selfgbcol"
|
||||||
defines the selected foreground color.
|
defines the selected foreground color.
|
||||||
.TP
|
.TP
|
||||||
.BI \-u " normbgcol"
|
.BI \-u " urgbgcol"
|
||||||
defines the normal background color.
|
defines the urgent background color.
|
||||||
.TP
|
.TP
|
||||||
.BI \-U " normfgcol"
|
.BI \-U " urgfgbcol"
|
||||||
defines the normal foreground color.
|
defines the urgent foreground color.
|
||||||
.TP
|
.TP
|
||||||
.B \-v
|
.B \-v
|
||||||
prints version information to stderr, then exits.
|
prints version information to stderr, then exits.
|
||||||
|
|
13
tabbed.c
13
tabbed.c
|
@ -1218,7 +1218,8 @@ char *argv0;
|
||||||
void
|
void
|
||||||
usage(void) {
|
usage(void) {
|
||||||
die("usage: %s [-dfhsv] [-g geometry] [-n name] [-p [s+/-]pos] [-r narg] "
|
die("usage: %s [-dfhsv] [-g geometry] [-n name] [-p [s+/-]pos] [-r narg] "
|
||||||
"[-u color] [-U color] [-t color] [-T color] command...\n", argv0);
|
"[-o color] [-O color] [-t color] [-T color] [-u color] [-U color] "
|
||||||
|
"command...\n", argv0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -1259,6 +1260,12 @@ main(int argc, char *argv[]) {
|
||||||
case 's':
|
case 's':
|
||||||
doinitspawn = False;
|
doinitspawn = False;
|
||||||
break;
|
break;
|
||||||
|
case 'o':
|
||||||
|
normbgcolor = EARGF(usage());
|
||||||
|
break;
|
||||||
|
case 'O':
|
||||||
|
normfgcolor = EARGF(usage());
|
||||||
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
selbgcolor = EARGF(usage());
|
selbgcolor = EARGF(usage());
|
||||||
break;
|
break;
|
||||||
|
@ -1266,10 +1273,10 @@ main(int argc, char *argv[]) {
|
||||||
selfgcolor = EARGF(usage());
|
selfgcolor = EARGF(usage());
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
normbgcolor = EARGF(usage());
|
urgbgcolor = EARGF(usage());
|
||||||
break;
|
break;
|
||||||
case 'U':
|
case 'U':
|
||||||
normfgcolor = EARGF(usage());
|
urgfgcolor = EARGF(usage());
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
die("tabbed-"VERSION", © 2009-2014"
|
die("tabbed-"VERSION", © 2009-2014"
|
||||||
|
|
Loading…
Reference in a new issue