awesomewm/actions.lua

16 lines
325 B
Lua
Raw Normal View History

2023-10-27 09:11:35 +00:00
local naughty = require("naughty")
2024-02-06 16:25:23 +00:00
local actions = {}
2023-10-27 09:11:35 +00:00
function actions.toggle_naughty()
if naughty.is_suspended() then
naughty.resume()
naughty.notify({ text = "Notifications enabled", timeout = 2 })
else
naughty.notify({ text = "Notifications disabled", timeout = 2 })
naughty.suspend()
end
end
return actions