dmenu-noxz

[fork] suckless dmenu - personal fork
git clone https://noxz.tech/git/dmenu-noxz.git
Log | Files | README | LICENSE

commit: 099ca0590dceac9698d3e959f2aceff24d353af3
parent: e02eabb868ed83a5130d0b81f8b438715d0238a5
author: Chris Noxz <chris@noxz.tech>
date:   Wed, 13 Dec 2023 19:46:04 +0100
Add ability to specify initial text
Mdmenu.c2++
1 file changed, 2 insertions(+)
diff --git a/dmenu.c b/dmenu.c
@@ -936,6 +936,8 @@ main(int argc, char *argv[])
 			colors[SchemeSelHighlight][ColFg] = argv[++i];
 		else if (!strcmp(argv[i], "-w"))   /* embedding window id */
 			embed = argv[++i];
+		else if (!strcmp(argv[i], "-it") && ++i)  /* insert initial text */
+			insert(argv[i], strlen(argv[i]));
 		else
 			usage();