Did you even try to look at the code? I bet it took you longer to write up the email that it took to add the 3 lines of code in the patch attached. could easily be made into a command line argument.
Jeremy On Mon 16 Feb 2009 - 05:39PM, michael_der gulliUser wrote: > Hi everybody, > > I've already read the manpage and the archives of this mailing list. > However, unfortunately I could not find a patch / a way to tell dmenu to > automatically confirm a selection and execute the command, if a menu item > and the text I've entered match exactly. But it seems to me as if the > members of this mailing list are all quite knowledgeable and helpful. So > here I go: > > I would very much like to feed dmenu a list of menu items, each of which > consists only of one letter (e.g. f as an alias for firefox). In this > particular case, it would be terrific if dmenu automatically launches > firefox without the need to confirm by pressing enter. > > My longterm goal is to use dmenu as a vehicle to easily select and execute > previously recorded keyboard macros in order to alleviate my RSI. > > Is this possible at all? > > Any help / suggestions on how to accomplish this is very much appreciated!!! > > Thanks in advance, > > Michael
diff -r 13402291bc76 dmenu.c --- a/dmenu.c Fri Dec 12 19:58:52 2008 +0000 +++ b/dmenu.c Mon Feb 16 12:04:33 2009 -0500 @@ -495,6 +495,9 @@ if(lexact) { item = lexact; itemend = exactend; + fprintf(stdout, "%s", item->text); + fflush(stdout); + running=False; } if(lprefix) { if(itemend) {