> I'm using naughty to get notifications from my firewall activities, but it's
> kind of annoying that when a naughty notification comes out, I have to use my
> mouse to clear it (I'm not setting the time-out limit as I don't want to miss
> any warnings when AFK). So is there any API to clear all the naughty
> notifications thus we can bind it to a hot key?
I'm using the following to remove (currently only) the last notification:
awful.key({ modkey }, "BackSpace",
function()
local screen = 1
for p, pos in pairs(naughty.notifications[screen]) do
for i, n in pairs(naughty.notifications[screen][p]) do
naughty.destroy(n)
return true
end
end
naughty.notify({ text = "no notification to remove",
timeout = 0.5 })
return false
end,
"remove latest notification"),
--
To unsubscribe, send mail to [email protected].