hi , I have a working 3.5 awesom desktop (I have copy the new rc.lua and
made a new theme too) I only have problems with widgets, I don't fully
understand lua (using awesome around a month), the awesome wikia is good,
but I'm not in the level to modify my widgets. I just need some examples,
how to migrate the right parts of the widget, and I will work everything
else.
so... if there is some developer, can show me the path to migrate this 2
widgets please?
--- {{{ OS info
sys = widget({ type= "textbox" })
sysicon = widget({type = "imagebox" })
sysicon.image = image(beautiful.widget_sys)
sysicon.resize = false
vicious.register(sys, vicious.widgets.os, "$1 $2")
--- }}}
and this
-- {{{ Mem Usage
-- Icon
ramicon = widget({type = "imagebox" })
ramicon.image = image(beautiful.widget_mem)
ramicon.resize = false
awful.widget.layout.margins[ramicon] = { top = 1 }
-- Percentage
mempct = widget({ type= "textbox", align = "right"})
vicious.register(mempct, vicious.widgets.mem, "$1%", 13)
-- Meter
membar = awful.widget.progressbar()
membar:set_width(35)
membar:set_height(6.3)
membar:set_vertical(false)
membar:set_background_color("#3F3F3F")
membar:set_color("#9C3B7F" )
vicious.register(membar, vicious.widgets.mem, "$1", 13)
-- Megs used
memwidget = widget({ type= "textbox", align = "left"})
vicious.register(memwidget, vicious.widgets.mem, "$2Mb", 5)
-- Align progressbar
awful.widget.layout.margins[membar.widget] = { top = 4 }
-- Cache
vicious.cache(vicious.widgets.mem)
--- }}}
PD: happy new year!