aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/quarrel/init.lua
blob: 025d89917139dc12c626d2bf4d558a040aff7cd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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