diff --git a/modules/picom/init.lua b/modules/picom/init.lua new file mode 100644 index 0000000..bb80033 --- /dev/null +++ b/modules/picom/init.lua @@ -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 +} diff --git a/modules/picom/picom.conf b/modules/picom/picom.conf new file mode 100644 index 0000000..66df01e --- /dev/null +++ b/modules/picom/picom.conf @@ -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 + diff --git a/rc.lua b/rc.lua index d75782d..62aafc9 100755 --- a/rc.lua +++ b/rc.lua @@ -65,7 +65,7 @@ for k, v in pairs(config) do elseif (config[k].enabled == false) then goto skip_module 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 end @@ -83,7 +83,7 @@ for k, v in pairs(config) do end -- Run all module init methods -for _, mod in ipairs(modules) do +for _, mod in pairs(modules) do if (mod["init"] ~= nil) then mod["init"]() end