Skip to content
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

Show icon randomly when no icons are provided #1322

Open
rew1nter opened this issue Mar 31, 2024 · 4 comments
Open

Show icon randomly when no icons are provided #1322

rew1nter opened this issue Mar 31, 2024 · 4 comments
Labels

Comments

@rew1nter
Copy link

default_icon is nice but the same icon for every notification is a bit boring. Can I randomly show an icon from a set of default icons?

@bynect
Copy link
Member

bynect commented Apr 1, 2024

default_icon is nice but the same icon for every notification is a bit boring. Can I randomly show an icon from a set of default icons?

At the moment you can't shuffle default icons but maybe you can hack up something with rules? For example by matching some regexes you can change the default icon (I didn't try it though)

@bynect bynect added the Feature label Apr 1, 2024
@rew1nter
Copy link
Author

rew1nter commented Apr 2, 2024

Hmmmm. Can you link me to some relevant doc for this regex feature

@bynect
Copy link
Member

bynect commented Apr 2, 2024

Hmmmm. Can you link me to some relevant doc for this regex feature

In the online docs under the rules section there is an overview. Maybe you can match against the body of the notification and change the icon. It is not random as you said, but you can simulate it somehow I think

@bynect
Copy link
Member

bynect commented Apr 6, 2024

Another solution is creating a wrapper script for dunstify that adds a random icon if none is provided. This would probably be best because you have full control and true randomness!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants