Added picom module, fixed module loading

master
Mark 2022-11-04 22:04:06 -07:00
parent e07ff152f4
commit 26ec943fef
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
3 changed files with 28 additions and 2 deletions

8
modules/picom/init.lua Normal file
View File

@ -0,0 +1,8 @@
return {
init = function()
local conf = conf_dir .. "/modules/picom/picom.conf"
awful.spawn("killall picom")
awful.spawn("picom -b --conf \"" .. conf .. "\"")
end
}

18
modules/picom/picom.conf Normal file
View File

@ -0,0 +1,18 @@
shadow-radius = 0
shadow-opacity = 0
// Enable fading initially.
// Finer config is in fade-exclude.
fading = true
fade-in-step = 0.04
fade-out-step = 0.03
fade-delta = 10
fade-exclude = [
"class_g != 'awesome'"
]
inactive-opacity = 1
active-opacity = 1
inactive-dim = 0

4
rc.lua
View File

@ -65,7 +65,7 @@ for k, v in pairs(config) do
elseif (config[k].enabled == false) then elseif (config[k].enabled == false) then
goto skip_module goto skip_module
elseif (config[k].enabled == nil) then elseif (config[k].enabled == nil) then
debug_message("Module " .. k .. " is not explicitly enabled") debug_message("Module " .. k .. " is not enabled, skipping.")
goto skip_module goto skip_module
end end
@ -83,7 +83,7 @@ for k, v in pairs(config) do
end end
-- Run all module init methods -- Run all module init methods
for _, mod in ipairs(modules) do for _, mod in pairs(modules) do
if (mod["init"] ~= nil) then if (mod["init"] ~= nil) then
mod["init"]() mod["init"]()
end end