--DOC_GEN_IMAGE --DOC_HIDE_START local l = ... local wibox = require("wibox") local beautiful = require("beautiful") local ret = wibox.layout.fixed.vertical() --DOC_HIDE_END for _, align in ipairs {"left", "center", "right"} do local w = wibox.widget { align = align, text = "some text", widget = wibox.widget.textbox, } --DOC_HIDE_START ret:add( wibox.widget { markup = "Alignement: " .. align .."", widget = wibox.widget.textbox }, wibox.widget{ w, margins = 1, color = beautiful.bg_normal, widget = wibox.container.margin, }, { forced_height = 10, widget = wibox.widget.base.make_widget() } ) --DOC_HIDE_END end --DOC_HIDE_START l:add(ret) return 200, nil -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80