On 05.11.2011 23:12, Giuseppe Luca Scrofani wrote:
> Hi, I am gls, a proud user of Awesome. I'm learning Lua as a new
> language and it is very interesting and useful. I'm thinking of
> switching to it completely from python in the near future. I am
> absolutely happy with Awesome, it make me transform my wm in a
> complete development environment supercharged with all the features I
> need.
> In the last year I managed to adapt it very well to me, and... viceversa.
> But now I miss something I cant find: How to call a function from the
> menu? If I try to call a custom function from menu, for example
> ExecuteAndNotify("gvim", "Your editor is starting") it will be
> executed immediately at Awesome start wich is not the intended
> behaviour.
> This is different to the behaviour of key presses, where an associated
> function excute only on the specific key press.
> It seems menu was conceived only to spawn processes passed in strings,
> but for me the ability to execute arbitrary lua code would be best.So what do you think how the "restart" and "quit" entries in the menu work? They definitely don't start an app. > For sure it is already possible, but I can get it now. > What do you think? 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'. Uli -- 'dubito ergo sum' -- Elke's whiteboard -- To unsubscribe, send mail to [email protected].
