-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting 'icon_position' and 'max_icon_size' via rules #638
Comments
I agree this and a more dynamic layout in general would be nice to have. The basic implementation of this is pretty simple, and would probably work in most cases but the code that handles the notification layout is currently a bit outdated and without any tests so I'm hesitant to add this immediately without a lot of testing and/or refactoring. That being said I'd accept a PR if someone wants to go through the trouble of making sure this works properly. For displaying icons for only specific notifications you can try setting a rule with |
+1. This seems very useful feature. More settings should be accessible from rules like
@donbex How can we change
@tsipinakis Unfortunately, this workaround doesn't work for me. |
I'd like to have this feature too. I want to adjust the icon size depending on the app, since i like seeing album covers from spotify, but not such big icons from other apps |
With #947 merged, you can set different icon sizes for each notification. See the man page for how to do that. |
Could you give a concrete example? I can't seem to make this work. I'm running dunstrc
The image is 64 px tall instead of 500. If I set |
Currently the
If you now send notifications with icons from your icon theme the size of the icon will be different for the application foobar. |
Right. My use case is the same as @SamsiFPV's: I would like to be able to have one maximum icon size for regular icons The icon theme I'm using only has scalable versions of the icons I'm interested in, no fixed size, so |
So adding a
The icon theme specifies how big the icons may be scaled in |
If there was a way for a rule to match notifications with raw icons, and a way for a rule to override The man page says |
Has anything changed since the previous discussion? #947 was already merged. I still don't know how to have a max icon size for icons but not for raw images. |
I would like to enable displaying icons only for some notifications, or at least to be able to change the maximum allowed icon size on a rule basis. However, as of
v1.4.0-10-gac94eca
, neithericon_position
normax_icon_size
can be set via rules.My specific use case is showing album art in "now playing" notifications, but suppress (or at least reduce the size of) all other icons. I guess I could write a script and call that via rules, but I think that would be more of a hack than a proper solution.
The text was updated successfully, but these errors were encountered: