Gentoo does that too. If your distro doesn't have it, you could make it yourself, it's not much:

#!/bin/sh
exe=`dmenu_path | dmenu ${1+"$@"}` && exec $exe

C. Coutinho wrote:
On Sun, Apr 26, 2009 at 09:46:23PM +0200, Nathan Huesken wrote:
  
Hi,

I would like to use dmenu to start my programs.
It works like this from the terminal:
exec `dmenu_path | dmenu -i -nb "#000000" -fn "-*-times-*-r-*-*-24-*-*-*-*-*-*-*" -sb "#00ff00" -sf "#af0000" -nf "#ff0000" -p "Execute:" -b`

So I do:
awful.util.spawn('exec `dmenu_path | dmenu -i -nb "#000000" -fn "-*-times-*-r-*-*-24-*-*-*-*-*-*-*" -sb "#00ff00" -sf "#af0000" -nf "#ff0000" -p "Execute:" -b`')

It shows the dmenu, but does not execute the command (as the command
does from the terminal).

Ideas?
Thanks!
Nathan
    

Don't know if this is distro-specific but archlinux installs a script
named 'dmenu_run' which does what you want and accept the same option
that dmenu does.

So you're command will be :

awful.util.spawn('dmenu_run -i -nb "#000000" -fn "-*-times-*-r-*-*-24-*-*-*-*-*-*-*" -sb "#00ff00" -sf "#af0000" -nf "#ff0000" -p "Execute:" -b')

  

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to