25 lines
486 B
Lua
25 lines
486 B
Lua
local awful = require("awful")
|
|
local wibox = require("wibox")
|
|
local beautiful = require("beautiful").get()
|
|
|
|
local function set_wall(s)
|
|
awful.wallpaper({
|
|
screen = s,
|
|
widget = {
|
|
{
|
|
image = beautiful.wallpaper,
|
|
upscale = true,
|
|
downscale = true,
|
|
widget = wibox.widget.imagebox,
|
|
},
|
|
valign = "center",
|
|
halign = "center",
|
|
tiled = true,
|
|
widget = wibox.container.tile,
|
|
},
|
|
})
|
|
end
|
|
|
|
screen.connect_signal("request::wallpaper", function(s)
|
|
set_wall(s)
|
|
end)
|