I'm coding a custom vertical wibox that contains my tasklist, I want it to look like this:
but instead of being fixed height, the tasklist items just take up all the available space. Here's the result:
Here's my code so far:
function render_task_box(s)
myotherbox[s] = awful.wibox({ position = "left", screen = s, ontop =
true, width = 200 })
mytasklist[s] = awful.widget.tasklist(
s,
awful.widget.tasklist.filter.currenttags,
mytasklist.buttons,
nil,
nil,
wibox.layout.flex.vertical())
local middle_layout = wibox.layout.fixed.vertical()
middle_layout:add(mytasklist[s])
local layout = wibox.layout.align.vertical()
layout:set_middle(middle_layout)
myotherbox[s]:set_widget(layout)
end
So how do I get wanted result? (or at least set height of tasklist icon)
Update
Looked up some docs and tried this:
local l = wibox.layout.flex.vertical();
l:set_max_widget_size(20)
It did nothing.