Right, didn't understand he wanted its output. Yes, io.popen will probably do the trick :-).
Anurag Priyam <[email protected]> wrote: >On Tue, Jan 3, 2012 at 7:25 AM, Daniel Martí ><[email protected]> wrote: >> I would use the keyboard shortcut bindings from rc.lua to call >sexec("mpc >> current") as well as naughty.notify. Or you could run an external >script >> with awesome-client. > >`sexec` won't capture the output, would it? You will have to use Lua's >`io.popen` sort of thing, no? > >-- >Anurag Priyam
