diff options
Diffstat (limited to '.config/awesome/quarrel/init.lua')
-rw-r--r-- | .config/awesome/quarrel/init.lua | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/.config/awesome/quarrel/init.lua b/.config/awesome/quarrel/init.lua index 025d899..96f7f5b 100644 --- a/.config/awesome/quarrel/init.lua +++ b/.config/awesome/quarrel/init.lua @@ -1,17 +1,22 @@ -local n = require "naughty".notification +local n = require("naughty").notification +---@class Quarrel local quarrel = {} +--- Send a notification with the specified message +---@param message any function quarrel.debug(message) n { message = tostring(message) } end -function quarrel.is_restart() - awesome.register_xproperty("is_restart", "boolean") - local restart_detected = awesome.get_xproperty("is_restart") ~= nil - awesome.set_xproperty("is_restart", true) - - return restart_detected - end +--- Check if there was a restart +---@return boolean +function quarrel.is_restart() + awesome.register_xproperty("is_restart", "boolean") + local restart_detected = awesome.get_xproperty "is_restart" ~= nil + awesome.set_xproperty("is_restart", true) + + return restart_detected +end return quarrel |