awesomewm/actions.lua
2026-08-12 18:09:07 +02:00

15 lines
337 B
Lua

local naughty = require("naughty")
local actions = {}
function actions.toggle_naughty()
if naughty.is_suspended() then
naughty.resume()
naughty.notification({ text = "Notifications enabled", timeout = 2 })
else
naughty.notification({ text = "Notifications disabled", timeout = 2 })
naughty.suspend()
end
end
return actions