RE: [dev] dmenu : auto confirm when only one item remains

From: Sławomir Gonet <gonet9_AT_gmail.com>
Date: Wed, 12 Aug 2009 23:32:48 +0200

IMO very bad idea. If you do that you won't be able to run command with arguments (eg. urxvt -e irssi).

Regards,
Slawek.

-----Original Message-----
From: Julien Steinhauser <Julien.Steinhauser_AT_orange.fr>
Sent: 12 sierpnia 2009 20:39
To: dev_AT_suckless.org
Subject: [dev] dmenu : auto confirm when only one item remains

Hello,
Sorry, I don't write to bring a patch.
I wander if someone has already patched dwm
to make it auto confirm when, (as said in the subject)
only one item remains.

I've found something on the mailing list which is almost
what I wish but not exactly, it auto confirms on exact match.

It could be something like :
<pseudocode>
if number of Item == 1 or if firstItem == lastItem
</pseudocode>
fprintf(stdout, "%s", text);
fflush(stdout);
running = False;

As I'm not a developper, I miss the knowledge
to write the if condition in real code.

This feature would be handy for a few scripts in which I use dmenu.
If someone has already done it or have ideas on how to do it, please let
me know :) .
Received on Wed Aug 12 2009 - 21:32:48 UTC

This archive was generated by hypermail 2.2.0 : Sun Aug 16 2009 - 14:18:44 UTC