widget.scroll = wibox.widget {
layout = wibox.container.scroll.horizontal,
- forced_width = 200,
- expand = true,
+ max_size = 200,
step_function = wibox.container.scroll.step_functions.linear_increase,
speed = 20,
{
widget = widget._textbox,
- align = 'center',
- valign = 'center'
}
}
awful.key({ modkey }, ".", function() widget._connection:send("next") end,
{ description = "next track", group = "mpd" })
)
-return widget.scroll
+return {
+ layout = wibox.layout.align.horizontal,
+ forced_width = 200,
+ expand = "outside",
+ nil,
+ widget.scroll,
+ nil,
+}