I do this in my rc.lua:
-- dmenu definition
dmenu = "exec `cat " ..awful.util.getdir("config") .."/proglist | dmenu "
.."-fn '" .."-*-terminus-medium-*-*-*-14-*-*-*-*-*-iso10646-*"
.."' -nb '" ..beautiful.bg_normal .."' -nf '" ..beautiful.fg_normal .."'"
.. " -sb '" ..beautiful.bg_focus .. "'" .. " -sf '" ..beautiful.fg_focus .. "'`"
and then:
key({ modkey }, "p", function () awful.util.spawn(dmenu) end),
Le Sun, 26 Apr 2009 21:46:23 +0200,
Nathan Huesken <[email protected]> a écrit :
> 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
>
--
To unsubscribe, send mail to [email protected].