commit 6aa84344c2caeb66571e1a05f2e5f20c7ea7da1c
parent 279c3b1a06667072c5dd68056f5479ffd4b19e70
Author: hhvn <dev@hhvn.uk>
Date: Sun, 13 Jun 2021 15:50:05 +0100
dmenu.c dmenu.1: remove dynamic colouring
Diffstat:
2 files changed, 2 insertions(+), 36 deletions(-)
diff --git a/dmenu.1 b/dmenu.1
@@ -12,22 +12,6 @@ dmenu \- dynamic menu
.IR prompt ]
.RB [ \-fn
.IR font ]
-.RB [ \-nb
-.IR color ]
-.RB [ \-nf
-.IR color ]
-.RB [ \-sb
-.IR color ]
-.RB [ \-sf
-.IR color ]
-.RB [ \-nhb
-.IR color ]
-.RB [ \-nhf
-.IR color ]
-.RB [ \-shb
-.IR color ]
-.RB [ \-shf
-.IR color ]
.RB [ \-w
.IR windowid ]
.P
diff --git a/dmenu.c b/dmenu.c
@@ -904,8 +904,7 @@ static void
usage(void)
{
fputs("usage: dmenu [-bfiPvr] [-l lines] [-p prompt] [-fn font] [-m monitor]\n"
- " [-h height] [-w width] [-nb color] [-nf color] [-sb color]\n"
- " [-sf color] [-w windowid]\n", stderr);
+ " [-h height] [-w width] [-w windowid]\n", stderr);
exit(1);
}
@@ -951,24 +950,7 @@ main(int argc, char *argv[])
else if(!strcmp(argv[i], "-h")) { /* minimum height of one menu line */
lineheight = atoi(argv[++i]);
lineheight = MAX(lineheight,8); /* reasonable default in case of value too small/negative */
- }
- else if (!strcmp(argv[i], "-nb")) /* normal background color */
- colors[SchemeNorm][ColBg] = argv[++i];
- else if (!strcmp(argv[i], "-nf")) /* normal foreground color */
- colors[SchemeNorm][ColFg] = argv[++i];
- else if (!strcmp(argv[i], "-sb")) /* selected background color */
- colors[SchemeSel][ColBg] = argv[++i];
- else if (!strcmp(argv[i], "-sf")) /* selected foreground color */
- colors[SchemeSel][ColFg] = argv[++i];
- else if (!strcmp(argv[i], "-nhb")) /* normal hi background color */
- colors[SchemeNormHighlight][ColBg] = argv[++i];
- else if (!strcmp(argv[i], "-nhf")) /* normal hi foreground color */
- colors[SchemeNormHighlight][ColFg] = argv[++i];
- else if (!strcmp(argv[i], "-shb")) /* selected hi background color */
- colors[SchemeSelHighlight][ColBg] = argv[++i];
- else if (!strcmp(argv[i], "-shf")) /* selected hi foreground color */
- colors[SchemeSelHighlight][ColFg] = argv[++i];
- else if (!strcmp(argv[i], "-w")) /* embedding window id */
+ } else if (!strcmp(argv[i], "-w")) /* embedding window id */
embed = argv[++i];
else if (!strcmp(argv[i], "-bw"))
border_width = atoi(argv[++i]); /* border width */