> I make a notification:
>
> $ echo "return naughty.notify({ text='foo', timeout=0 }).id" | awesome-client
>    double 1234
>
> -- is there an easy way to destroy it?
>

Looks like I digged out some solution myself.

$ echo "for s=1,screen.count() do for p,x in
pairs(naughty.notifications[s]) do for i,notification in
pairs(naughty.notifications[s][p]) do if notification.id==1234 then
naughty.destroy(notification) end end end end" | awesome-client

dbus-send org.freedesktop.Notifications.CloseNotification command
destroys notifications as well.

Whew.

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

Reply via email to