On Sun, 23 May 2010, Barkat wrote:

> please help me to edit this so display output can be via naughty or 
> notify-send I tried few things but din't work.

Hi, 
I never used naughty but it seems simple enough

awful.key({ modkey }, "F11", function ()
  awful.prompt.run({ prompt = "Calculate: " }, mypromptbox[mouse.screen].widget,
    function (expr)
      naughty.notify({ text = awful.util.eval("return (".. expr .. ")") })
    end)
end),

On this you can display the actual expr with an = sign for some styling, 
and add additional naughty arguments if you need them (timeout, width, 
position...).

-- 
Adrian C. (anrxc) | anrxc..sysphere.org | PGP ID: D20A0618
PGP FP: 02A5 628A D8EE 2A93 996E  929F D5CB 31B7 D20A 0618

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

Reply via email to