2018-07-24 14:12:44 +02:00
|
|
|
--DOC_GEN_IMAGE --DOC_HIDE
|
2016-10-09 07:33:08 +02:00
|
|
|
local generic_widget = ... --DOC_HIDE
|
|
|
|
local wibox = require("wibox") --DOC_HIDE
|
|
|
|
local awful = {placement = require("awful.placement")} --DOC_HIDE
|
|
|
|
|
|
|
|
local l = wibox.layout {
|
|
|
|
layout = wibox.layout.manual
|
|
|
|
}
|
|
|
|
--
|
|
|
|
local w1 = generic_widget()
|
|
|
|
w1.point = {x=75, y=5}
|
|
|
|
w1.text = "first"
|
|
|
|
w1.forced_width = 50
|
|
|
|
l:add(w1)
|
|
|
|
|
|
|
|
l:move_widget(w1, awful.placement.bottom_right)
|
|
|
|
|
|
|
|
return l, 100, 50 --DOC_HIDE
|
|
|
|
|