mirror of
https://github.com/purhan/dotfiles.git
synced 2026-01-11 02:14:13 +08:00
29 lines
718 B
Lua
29 lines
718 B
Lua
local wibox = require('wibox')
|
|
local gears = require('gears')
|
|
local clickable_container = require('widget.material.clickable-container')
|
|
local dpi = require('beautiful').xresources.apply_dpi
|
|
|
|
function build(imagebox, args)
|
|
-- return wibox.container.margin(container, 6, 6, 6, 6)
|
|
return wibox.widget {
|
|
wibox.widget {
|
|
wibox.widget {
|
|
imagebox,
|
|
top = dpi(6),
|
|
left = dpi(6),
|
|
right = dpi(6),
|
|
bottom = dpi(6),
|
|
widget = wibox.container.margin
|
|
},
|
|
shape = gears.shape.circle,
|
|
widget = clickable_container
|
|
},
|
|
top = dpi(6),
|
|
left = dpi(6),
|
|
right = dpi(6),
|
|
bottom = dpi(6),
|
|
widget = wibox.container.margin
|
|
}
|
|
end
|
|
|
|
return build
|