Is it posible in awesome wm to draw widget upper the other widget? As example: draw texbox with some text(percentages) on progressbar.
Here is worked solution
local function make_stack(w1, w2)
local ret = wibox.widget.base.make_widget()
ret.fit = function(self, ...) return w1:fit(...) end
ret.draw = function(self, wibox, cr, width, height)
w1:draw(wibox, cr, width, height)
w2:draw(wibox, cr, width, height)
end
update = function() ret:emit_signal("widget::updated") end
w1:connect_signal("widget::updated", update)
w2:connect_signal("widget::updated", update)
return ret
end