25 lines
735 B
Lua
25 lines
735 B
Lua
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 {
|
|
value = 0.33,
|
|
shape = gears.shape[shape],
|
|
border_width = 2,
|
|
border_color = beautiful.border_color,
|
|
margins = 5, --DOC_HIDE
|
|
widget = wibox.widget.progressbar,
|
|
})
|
|
end
|
|
|
|
parent:add(l) --DOC_HIDE
|