add arguments for mode

This commit is contained in:
speedie 2023-02-25 18:20:22 +01:00
parent 30f952b494
commit 73e143f710

View file

@ -2104,6 +2104,8 @@ usage(void)
"spmenu -shb <color> Set the selected highlight background color\n" "spmenu -shb <color> Set the selected highlight background color\n"
"spmenu -nfg <color> Set the foreground color for the match count\n" "spmenu -nfg <color> Set the foreground color for the match count\n"
"spmenu -nbg <color> Set the background color for the match count\n" "spmenu -nbg <color> Set the background color for the match count\n"
"spmenu -mfg <color> Set the foreground color for the mode indicator\n"
"spmenu -mbg <color> Set the background color for the mode indicator\n"
"spmenu -laf <color> Set the left arrow foreground color\n" "spmenu -laf <color> Set the left arrow foreground color\n"
"spmenu -raf <color> Set the left arrow foreground color\n" "spmenu -raf <color> Set the left arrow foreground color\n"
"spmenu -lab <color> Set the left arrow background color\n" "spmenu -lab <color> Set the left arrow background color\n"
@ -2322,6 +2324,12 @@ main(int argc, char *argv[])
colors[SchemeNormHighlight][ColFg] = argv[++i]; colors[SchemeNormHighlight][ColFg] = argv[++i];
} else if (!strcmp(argv[i], "-nbg")) { /* numbgcolor */ } else if (!strcmp(argv[i], "-nbg")) { /* numbgcolor */
colors[SchemeNumber][ColBg] = argv[++i]; colors[SchemeNumber][ColBg] = argv[++i];
} else if (!strcmp(argv[i], "-nfg")) { /* numfgcolor */
colors[SchemeNumber][ColFg] = argv[++i];
} else if (!strcmp(argv[i], "-mbg")) { /* mode */
colors[SchemeMode][ColBg] = argv[++i];
} else if (!strcmp(argv[i], "-mfg")) { /* mode */
colors[SchemeMode][ColFg] = argv[++i];
} else if (!strcmp(argv[i], "-laf")) { /* left arrow fg */ } else if (!strcmp(argv[i], "-laf")) { /* left arrow fg */
colors[SchemeLArrow][ColFg] = argv[++i]; colors[SchemeLArrow][ColFg] = argv[++i];
} else if (!strcmp(argv[i], "-raf")) { /* right arrow fg */ } else if (!strcmp(argv[i], "-raf")) { /* right arrow fg */