diff --git a/dotfiles/config/taffybar/taffybar.hs b/dotfiles/config/taffybar/taffybar.hs index f5340c0b..134ef1ef 100644 --- a/dotfiles/config/taffybar/taffybar.hs +++ b/dotfiles/config/taffybar/taffybar.hs @@ -291,7 +291,15 @@ mprisWidget :: TaffyIO Gtk.Widget mprisWidget = mpris2NewWithConfig MPRIS2Config - { mprisWidgetWrapper = decorateWithClassAndBox "mpris" + { mprisWidgetWrapper = \grid -> do + icon <- Gtk.labelNew (Just "\xF075A") + _ <- widgetSetClassGI icon "icon" + Gtk.widgetSetName icon "mpris-icon" + box <- Gtk.boxNew Gtk.OrientationHorizontal 0 + Gtk.containerAdd box icon + Gtk.containerAdd box grid + Gtk.widgetShowAll box + Gtk.toWidget box >>= decorateWithClassAndBox "mpris" , updatePlayerWidget = simplePlayerWidget defaultPlayerConfig