On 19.11.2012 22:26, Jānis Ģeņģeris wrote:
> Hello,
> 
> I have created graph widget with 'awful' for monitoring CPU load. You can
> see it here:
> http://img211.imageshack.us/img211/6938/graphg.png
> 
> The graphs height is of the same height as wibox.
> 
> I can resize it, using set_width() and the graph gets aligned against top
> edge, like this:
> http://img607.imageshack.us/img607/3604/graph2b.png
> 
> But how to center it vertically inside a wibox?

With 3.4:

awful.widget.layout.marings[foo] = { top = 5, bottom = 5 }

With git/master:

local margin = wibox.layout.margin(foo, 0, 0, 5, 5)
(and then add "margin" instead of "foo" to your wibox)

Good night,
Uli
-- 
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?" -- A. P. J.

-- 
To unsubscribe, send mail to [email protected].

Reply via email to