View Single Post
Old 03-27-2020, 07:13 PM   #15
yparitcher
Connoisseur
yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.
 
Posts: 52
Karma: 616590
Join Date: Feb 2019
Device: K4 KT4 PW4 PW5
in /etc/xdg/awesome/lab126_ligl.lua the epdcMode lipc call is defined as:

Code:
    -- property to enable/disable colorInverse mode
    propertyColorInverseMode = registerLipcStringProp("epdcMode", "rw")
    propertyColorInverseMode.value =  execAndGrabResult("get-dynconf-value winmgr.colorinverse.pref")
    propertyColorInverseMode.listener = function (name, value)

        local ret = ligl.set_epdc_grayscale_mode(g_liglRef, tostring(value))
        if (ret == 1) then
            execAndGrabResult("set-dynconf-value winmgr.colorinverse.pref " .. tostring(value))
            execAndGrabResult("xrefresh -root")
            sendLipcEvent("nightModeStateChanged",{tostring(value)})
        else
            llog.error("WindowManager", "propertyColorInverseMode", "","Failed to set EPDC MODE to " .. tostring(value))
            propertyColorInverseMode.value =  execAndGrabResult("get-dynconf-value winmgr.colorinverse.pref")
        end
    end
yparitcher is offline   Reply With Quote