Group notification icons per application

Is it possible to group all notification items of the same app? Right now, with $ni(si(mindex), icon)$, every notification is shown and I would like to show just one icon for all notifications of the same app. Is there any way to do that?