Link: My current dmenu changes

August 9, 2013

As I've mentioned before, I have a set of changes I've made to dmenu to make it work better for me. I have now put my current patch online as dmenu-4.5-tip.patch in case anyone is interested. I happen to like all of my changes, but then I would. See the start of the patch for a description of what it includes (and then the documentation for the new switches in the revised dmenu.1 manpage).

I expect that I'll update this patch periodically as the main dmenu source itself gets updated, but so far the latter doesn't seem to change very often.

PS: to save the energy of anyone asking: while my patch set contains a bugfix for dmenu's handling of -m (and the manpage), I don't currently feel like breaking it out as a separate patch and then trying to send it upstream. It's too much work for too little chance of success.

Update, August 4th 2015: The patchset linked above is now out of date, per here. My dmenu changes are now in my github repo for my version, split up into multiple commits that you can cherry-pick as desired.

Comments on this page:

From at 2013-08-14 23:46:15:

My shell is bash, so I changed the last line of dmenu_run from:

) | ${SHELL:-"/bin/sh"} &


) | /bin/ash &

because the purist in me rebels at running everything from a bloated bash shell.

That same purist wishes dmenu would test the executable with file and exec it if it doesn't need a shell. (Despite now having 4GB of memory available, I still retain OCD memory constraint instincts from 1990. Yes, I have a grey beard...)

I dunno, there is just something wrong with running executables from a shell.

Nick Coleman

By cks at 2013-08-15 00:38:49:

The short answer is that dmenu can't do any of that without making large assumptions about how it's being used. Dmenu is a general tool, not just a program launcher.

Written on 09 August 2013.
« How to accidentally reboot a server
The importance of names, illustrated through my mistake »

Page tools: View Source, View Normal, Add Comment.
Login: Password:
Atom Syndication: Recent Comments.

Last modified: Fri Aug 9 11:34:03 2013
This dinky wiki is brought to you by the Insane Hackers Guild, Python sub-branch.