Dunst: Support freedesktop icon theme specification

Created on 19 Mar 2014  ·  4Comments  ·  Source: dunst-project/dunst

I'd like to have support for the xdg icon theme specification so you only have to set a theme name and not twenty directories. Maybe allow one directory to be searched before the icon theme where you can put your own icons if needed.

http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#icon_lookup

Feature help wanted

Most helpful comment

My icon_path configuration field is currently over 2000 chars long, while it could boil down to less than 20 chars. This is insane.

Current implementations of this are either unmaintained, lack scaling support or are not a common library/package. I'll probably write a fresh one for this algorithm. It'll probably give me some experience in libraries.

All 4 comments

Perhaps, you can find some useful code in here
jgmenu also supports reading icon theme from xsettings with fallback to GTK config files.

My icon_path configuration field is currently over 2000 chars long, while it could boil down to less than 20 chars. This is insane.

Current implementations of this are either unmaintained, lack scaling support or are not a common library/package. I'll probably write a fresh one for this algorithm. It'll probably give me some experience in libraries.

I am keeping an eye on three thematically close independent software projects that work with icons: yours, tint2 and jgmenu. Lightweight implementation of XDG icon theme spec would benefit many, I see collaboration potential.

Thanks for mentioning tint2. On the first glance, the code for the icon theme looks quite neat, too!

https://gitlab.com/o9000/tint2/blob/master/src/launcher/icon-theme-common.c

Was this page helpful?
0 / 5 - 0 ratings