On 06.11.2011 00:18, Giuseppe Luca Scrofani wrote:
>> Could you show us some code sample of what you are doing? I feel like you 
>> need
>> to wrap your stuff in some 'function() foo end'.
> 
> I know of awesome.quit and restart. But they are not getting
> parameters, are the only instructions (not strings) I have found in
> every configuration available in the menu, and they do not show the
> described behaviour.
> If you can provide more useful examples with a
> less rude approach I will be grateful.

Didn't mean to be rude and I just meant those as counter-examples to your "no
way! can't work!".

> In rc.lua:
> 
> function ExecAndNotify(command, message)
>     awful.util.spawn(command)
>     naughty.notify({text=message})
>     if voice_synthesis then
>         awful.util.spawn(andy .. '"' .. message .. '"')
>     end
> end
> 
> require("generated-menu")
> 
> ecc. ecc.
> 
> In generated-menu.lua
> 
> -- A menu entry using ExecAndNotify function
> { "gvim", ExecAndNotify("gvim", "Your editor is starting...") }
> 
> ecc. ecc.

{ "gvim", function() ExecAndNotify("gvim", "Your editor is starting...") end }

Cheers,

Rude Uli

-- 
'dubito ergo sum'
-- Elke's whiteboard

-- 
To unsubscribe, send mail to [email protected].

Reply via email to