18 lines
400 B
Lua
18 lines
400 B
Lua
local n = require "naughty".notification
|
|
|
|
local quarrel = {}
|
|
|
|
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
|
|
|
|
return quarrel
|