Bindings and rules

This commit is contained in:
Alexander Gehrke 2023-10-27 11:11:35 +02:00
parent 81cba76bde
commit dcf3a84ba8
7 changed files with 40 additions and 55 deletions

15
actions.lua Normal file
View file

@ -0,0 +1,15 @@
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