16 lines
319 B
Lua
16 lines
319 B
Lua
![]() |
local naughty = require("naughty")
|
||
|
|
||
|
actions = {}
|
||
|
|
||
|
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
|