2016-07-25 04:35:58 +02:00
|
|
|
local parent = ... --DOC_HIDE
|
|
|
|
local wibox = require("wibox") --DOC_HIDE
|
|
|
|
local gears = {shape = require("gears.shape") } --DOC_HIDE
|
|
|
|
local beautiful = require("beautiful") --DOC_HIDE
|
|
|
|
|
|
|
|
|
|
|
|
local l = wibox.layout { --DOC_HIDE
|
|
|
|
forced_height = 100, --DOC_HIDE
|
|
|
|
forced_width = 100, --DOC_HIDE
|
|
|
|
layout = wibox.layout.flex.vertical --DOC_HIDE
|
|
|
|
} --DOC_HIDE
|
|
|
|
|
|
|
|
for _, shape in ipairs {"rounded_bar", "octogon", "hexagon", "powerline" } do
|
|
|
|
l:add(wibox.widget {
|
2016-12-27 21:39:08 +01:00
|
|
|
value = 0.33,
|
|
|
|
shape = gears.shape[shape],
|
|
|
|
border_width = 2,
|
|
|
|
border_color = beautiful.border_color,
|
|
|
|
margins = 5, --DOC_HIDE
|
|
|
|
widget = wibox.widget.progressbar,
|
|
|
|
})
|
2016-07-25 04:35:58 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
parent:add(l) --DOC_HIDE
|