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')
--
To unsubscribe, send mail to [email protected].