On Sat, Nov 23, 2013 at 12:57:40AM +0100, Adrian C. wrote:
> On Thu, 21 Nov 2013, Dong Zhu wrote:
>
> > > memwidgetmargin = wibox.layout.margin()
> > > memwidgetmargin:set_widget(memwidget)
> > > memwidgetmargin:set_top(8)
> > >
> >
> > I did as you said, but unfortunately it didn't work.
>
> He was showing you pseudo code. You may have to reference your actual
> widget object like you used to in 3.4 (guessing).
>
> memwidgetmargin:set_widget(membar.widget)
>
>
> You tried it like this too right?
This issue has been resolved, I use the following configuration and it works
properly.
membar = awful.widget.progressbar()
membar:set_width(50)
membar:set_height(8)
membar:set_vertical(false)
membar:set_background_color("#3F3F3F")
membar:set_border_color(nil)
membar:set_color({ type = "linear", from = { 0, 0 }, to = { 10,0 }, stops = {
{0, "#AECF96"}, {0.5, "#88A175"}, {1, "#FF5656"}}})
vicious.register(membar, vicious.widgets.mem, "$1", 13)
-- Align progressbar
memargin = wibox.layout.margin()
memargin:set_top(6)
memargin:set_bottom(6)
memargin:set_widget(membar)
memwidgetbar = wibox.widget.background(memargin)
--
Best Regards,
Dong Zhu
MySite: http://bluezd.info
--
To unsubscribe, send mail to [email protected].