How to use custom icons for dunst notifications?

I’m trying to use a couple of png files as icons for dunst notifications without having to specify the full path in notify-send --icon=....

Dunst looks for icons in the directories listed in the icon_path config variable, which home-manager sets to /run/current-system/sw/share/icons/hicolor, ~/.nix-profile/share/icons/hicolor and ${pkgs.hicolor-icon-theme}/share/icons/hicolor, none of which I can add a file to directly.

Did anyone else here run into the same problem?

1 Like