diff --git a/dotfiles/config/taffybar/icons/nix-snowflake.svg b/dotfiles/config/taffybar/icons/nix-snowflake.svg new file mode 100644 index 00000000..2a065bc9 --- /dev/null +++ b/dotfiles/config/taffybar/icons/nix-snowflake.svg @@ -0,0 +1,187 @@ + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/dotfiles/config/taffybar/taffybar.hs b/dotfiles/config/taffybar/taffybar.hs index 2edde590..bf53bccc 100644 --- a/dotfiles/config/taffybar/taffybar.hs +++ b/dotfiles/config/taffybar/taffybar.hs @@ -585,11 +585,15 @@ omniMenuWidget :: TaffyIO Gtk.Widget omniMenuWidget = decorateWithClassAndBoxM "omni-menu" $ do icon <- - liftIO $ - Gtk.imageNewFromIconName - (Just "system-run") - (fromIntegral $ fromEnum Gtk.IconSizeMenu) - >>= Gtk.toWidget + liftIO $ do + iconPath <- getUserConfigFile "taffybar" "icons/nix-snowflake.svg" + pixbufNewFromFileAtScaleByHeight 18 iconPath >>= \case + Right pixbuf -> Gtk.toWidget =<< Gtk.imageNewFromPixbuf (Just pixbuf) + Left _ -> + Gtk.imageNewFromIconName + (Just "system-run") + (fromIntegral $ fromEnum Gtk.IconSizeMenu) + >>= Gtk.toWidget omniMenuNewWithConfig (defaultOmniMenuConfig icon) { omniMenuIncludeApplications = True,