From 96a2605674e2621957af40b7b8eb450ccf2841e6 Mon Sep 17 00:00:00 2001 From: justsaumit Date: Wed, 2 Mar 2022 09:11:58 +0530 Subject: Highpriority patch --- dmenu.c.rej | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 dmenu.c.rej (limited to 'dmenu.c.rej') diff --git a/dmenu.c.rej b/dmenu.c.rej new file mode 100644 index 0000000..e747a27 --- /dev/null +++ b/dmenu.c.rej @@ -0,0 +1,27 @@ +--- dmenu.c ++++ dmenu.c +@@ -728,7 +773,8 @@ static void + usage(void) + { + fputs("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" +- " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]\n", stderr); ++ " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]\n" ++ " [-hb color] [-hf color] [-hp items]\n", stderr); + exit(1); + } + +@@ -769,8 +815,14 @@ main(int argc, char *argv[]) + colors[SchemeSel][ColBg] = argv[++i]; + else if (!strcmp(argv[i], "-sf")) /* selected foreground color */ + colors[SchemeSel][ColFg] = argv[++i]; ++ else if (!strcmp(argv[i], "-hb")) /* high priority background color */ ++ colors[SchemeHp][ColBg] = argv[++i]; ++ else if (!strcmp(argv[i], "-hf")) /* low priority background color */ ++ colors[SchemeHp][ColFg] = argv[++i]; + else if (!strcmp(argv[i], "-w")) /* embedding window id */ + embed = argv[++i]; ++ else if (!strcmp(argv[i], "-hp")) ++ hpitems = tokenize(argv[++i], ",", &hplength); + else + usage(); + -- cgit v1.2.3