]> Skullheadx's Git Forge - dmenu.git/commitdiff
add -of and -ob arguments for outline colors options for multi-selection
authorJulien Addé <juadde+suckless@gmail.com>
Wed, 28 Jan 2026 14:57:20 +0000 (15:57 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 30 Jan 2026 10:09:51 +0000 (11:09 +0100)
dmenu.1
dmenu.c

diff --git a/dmenu.1 b/dmenu.1
index 323f93cf88eee5bd4878cf78cf40d9677277916c..ed0e4428f87bc4a9fe96669c4b4d701d899bc585 100644 (file)
--- a/dmenu.1
+++ b/dmenu.1
@@ -20,6 +20,10 @@ dmenu \- dynamic menu
 .IR color ]
 .RB [ \-sf
 .IR color ]
+.RB [ \-ob
+.IR color ]
+.RB [ \-of
+.IR color ]
 .RB [ \-w
 .IR windowid ]
 .P
@@ -75,6 +79,12 @@ defines the selected background color.
 .BI \-sf " color"
 defines the selected foreground color.
 .TP
+.BI \-ob " color"
+defines the outline background color (for multiple selection).
+.TP
+.BI \-of " color"
+defines the outline foreground color (for multiple selection).
+.TP
 .B \-v
 prints version information to stdout, then exits.
 .TP
diff --git a/dmenu.c b/dmenu.c
index 9577b3736d6c4577ce7a32e285f072e3fbcb496f..363d19fd4b6f58c4d650fdf155554ef5a4d678be 100644 (file)
--- a/dmenu.c
+++ b/dmenu.c
@@ -755,6 +755,10 @@ 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], "-ob"))  /* outline background color */
+                       colors[SchemeOut][ColBg] = argv[++i];
+               else if (!strcmp(argv[i], "-of"))  /* outline foreground color */
+                       colors[SchemeOut][ColFg] = argv[++i];
                else if (!strcmp(argv[i], "-w"))   /* embedding window id */
                        embed = argv[++i];
                else