Bindings and rules
This commit is contained in:
parent
81cba76bde
commit
dcf3a84ba8
7 changed files with 40 additions and 55 deletions
15
actions.lua
Normal file
15
actions.lua
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue