From 73e143f710c423f18b974e2f160b0d509e304873 Mon Sep 17 00:00:00 2001 From: speedie Date: Sat, 25 Feb 2023 18:20:22 +0100 Subject: [PATCH] add arguments for mode --- spmenu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spmenu.c b/spmenu.c index 10eaab9..661191f 100644 --- a/spmenu.c +++ b/spmenu.c @@ -2104,6 +2104,8 @@ usage(void) "spmenu -shb Set the selected highlight background color\n" "spmenu -nfg Set the foreground color for the match count\n" "spmenu -nbg Set the background color for the match count\n" + "spmenu -mfg Set the foreground color for the mode indicator\n" + "spmenu -mbg Set the background color for the mode indicator\n" "spmenu -laf Set the left arrow foreground color\n" "spmenu -raf Set the left arrow foreground color\n" "spmenu -lab Set the left arrow background color\n" @@ -2322,6 +2324,12 @@ main(int argc, char *argv[]) colors[SchemeNormHighlight][ColFg] = argv[++i]; } else if (!strcmp(argv[i], "-nbg")) { /* numbgcolor */ 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 */ colors[SchemeLArrow][ColFg] = argv[++i]; } else if (!strcmp(argv[i], "-raf")) { /* right arrow fg */