2021-06-14 10:09:18 +02:00
|
|
|
--DOC_GEN_IMAGE
|
|
|
|
--DOC_HIDE_START
|
|
|
|
local awful = { wallpaper = require("awful.wallpaper") }
|
|
|
|
local wibox = require("wibox")
|
|
|
|
local gears = {color = require("gears.color") }
|
|
|
|
|
|
|
|
screen._track_workarea = true
|
|
|
|
screen[1]._resize {x = 0, y = 0, width = 160, height = 96}
|
|
|
|
screen._add_screen {x = 161, y = 0, width = 160, height = 96}
|
|
|
|
screen._add_screen {x = 322, y = 0, width = 160, height = 96}
|
|
|
|
require("_default_look")
|
|
|
|
--DOC_HIDE_END
|
|
|
|
|
|
|
|
-- There is 3 screens. This will add the wallpaper to the last 2.
|
|
|
|
awful.wallpaper {
|
|
|
|
screens = {
|
|
|
|
screen[2],
|
|
|
|
screen[3],
|
|
|
|
},
|
|
|
|
bg = "#222222",
|
|
|
|
widget = wibox.widget {
|
|
|
|
{
|
|
|
|
fit = function(_, width, height)
|
|
|
|
return width, height
|
|
|
|
end,
|
|
|
|
draw = function(_, _, cr, width, height)
|
|
|
|
cr:set_source(gears.color("#0000ff"))
|
|
|
|
cr:line_to(width, height)
|
|
|
|
cr:line_to(width, 0)
|
|
|
|
cr:line_to(0, 0)
|
|
|
|
cr:close_path()
|
|
|
|
cr:fill()
|
|
|
|
|
|
|
|
cr:set_source(gears.color("#ff00ff"))
|
|
|
|
cr:move_to(0, 0)
|
|
|
|
cr:line_to(0, height)
|
|
|
|
cr:line_to(width, height)
|
|
|
|
cr:close_path()
|
|
|
|
cr:fill()
|
|
|
|
end,
|
|
|
|
widget = wibox.widget.base.make_widget()
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text = "Center",
|
|
|
|
valign = "center",
|
2022-09-04 09:33:09 +02:00
|
|
|
halign = "center",
|
2021-06-14 10:09:18 +02:00
|
|
|
widget = wibox.widget.textbox,
|
|
|
|
},
|
|
|
|
widget = wibox.layout.stack
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
require("gears.timer").run_delayed_calls_now() --DOC_HIDE
|