Added Deco Module

This commit is contained in:
Noella
2024-03-04 22:32:18 -07:00
parent 9410017416
commit 5babd2e2bc
9 changed files with 216 additions and 51 deletions

21
deco/wallpaper.lua Normal file
View File

@@ -0,0 +1,21 @@
local awful = require("awful")
local gears = require("gears")
local _W = {}
function _W.set_wallpaper(s)
local wallpaper = require("theme.wallpaper")
if type(wallpaper) == "function" then
wallpaper = wallpaper(s)
end
gears.wallpaper.maximized(wallpaper, s, true)
end
screen.connect_signal("property::geometry", _W.set_wallpaper)
return setmetatable({}, {
__call = function(_, ...)
return _W.set_wallpaper(...)
end,
})