Added function to check state of notifications
Sometimes is a good idea to check if notifications are suspended, for example, for changing the icon. This function just returns the value of suspended. Closes https://github.com/awesomeWM/awesome/pull/222.
This commit is contained in:
parent
bafa12ca24
commit
82e62a0fad
|
@ -143,6 +143,11 @@ for s = 1, capi.screen.count() do
|
|||
}
|
||||
end
|
||||
|
||||
--- Notification state
|
||||
function naughty.is_suspended()
|
||||
return suspended
|
||||
end
|
||||
|
||||
--- Suspend notifications
|
||||
function naughty.suspend()
|
||||
suspended = true
|
||||
|
|
Loading…
Reference in New Issue