2024-02-19 19:41:33 -08:00
|
|
|
local awful = require("awful")
|
|
|
|
local wibox = require("wibox")
|
2024-02-20 19:13:52 -08:00
|
|
|
local beautiful = require("beautiful").get()
|
2024-02-17 17:14:20 -08:00
|
|
|
|
|
|
|
local function set_wall(s)
|
2024-02-19 19:41:33 -08:00
|
|
|
awful.wallpaper({
|
2024-02-17 17:14:20 -08:00
|
|
|
screen = s,
|
|
|
|
widget = {
|
|
|
|
{
|
|
|
|
image = beautiful.wallpaper,
|
|
|
|
upscale = true,
|
|
|
|
downscale = true,
|
|
|
|
widget = wibox.widget.imagebox,
|
|
|
|
},
|
|
|
|
valign = "center",
|
|
|
|
halign = "center",
|
|
|
|
tiled = true,
|
|
|
|
widget = wibox.container.tile,
|
2024-02-19 19:41:33 -08:00
|
|
|
},
|
|
|
|
})
|
2024-02-17 17:14:20 -08:00
|
|
|
end
|
|
|
|
|
|
|
|
screen.connect_signal("request::wallpaper", function(s)
|
|
|
|
set_wall(s)
|
|
|
|
end)
|