2016-07-25 04:06:11 +02:00
|
|
|
local parent = ... --DOC_NO_USAGE --DOC_HIDE
|
|
|
|
local wibox = require("wibox") --DOC_HIDE
|
|
|
|
local beautiful = require("beautiful") --DOC_HIDE
|
|
|
|
|
|
|
|
parent:add( --DOC_HIDE
|
|
|
|
|
2016-12-27 21:39:08 +01:00
|
|
|
wibox.widget {
|
|
|
|
{
|
|
|
|
max_value = 1,
|
|
|
|
value = 0.5,
|
|
|
|
forced_height = 20,
|
|
|
|
forced_width = 100,
|
|
|
|
paddings = 1,
|
|
|
|
border_width = 1,
|
|
|
|
border_color = beautiful.border_color,
|
|
|
|
widget = wibox.widget.progressbar,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text = "50%",
|
|
|
|
widget = wibox.widget.textbox,
|
|
|
|
},
|
|
|
|
layout = wibox.layout.stack
|
|
|
|
}
|
2016-07-25 04:06:11 +02:00
|
|
|
|
2016-12-27 21:39:08 +01:00
|
|
|
) --DOC_HIDE
|
2016-12-31 13:59:38 +01:00
|
|
|
|
|
|
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|