From: Samir Benmendil Date: Wed, 5 Aug 2020 19:27:46 +0000 (+0100) Subject: awesome: wrap mpd_widget into a scroll container and use it X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/e039d820703fc2a900da3ce344ed205060c88584 awesome: wrap mpd_widget into a scroll container and use it --- diff --git a/awesome/topbar.lua b/awesome/topbar.lua index 27493b3..62ca934 100644 --- a/awesome/topbar.lua +++ b/awesome/topbar.lua @@ -103,7 +103,17 @@ awful.screen.connect_for_each_screen(function(s) separator, require("widgets/pomodoro"), separator, - require("widgets/awesompd"), + -- TODO move to mpd_widget + wibox.widget { + layout = wibox.container.scroll.horizontal, + max_size = 200, + step_function = wibox.container.scroll.step_functions.linear_increase, + speed = 20, + { + widget = require("widgets/mpd_widget") + } + }, + separator, require("widgets/volume_widget"), utils.has_battery() and { layout = wibox.layout.fixed.horizontal,