From 1db1da6378029bd3c1bb2c8f84cb5df243d6886f Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 7 Feb 2026 23:50:22 -0800 Subject: [PATCH] taffybar: add nerd font icon to mpris widget Wrap the mpris grid in a box with a nerd font music note icon (U+F075A) so it follows the same icon+label pattern as other widgets. Co-Authored-By: Claude Opus 4.6 --- dotfiles/config/taffybar/taffybar.hs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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