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

How to disable icons in dunstify #1358

Closed
eeeXun opened this issue May 28, 2024 · 6 comments · Fixed by #1365
Closed

How to disable icons in dunstify #1358

eeeXun opened this issue May 28, 2024 · 6 comments · Fixed by #1365

Comments

@eeeXun
Copy link

eeeXun commented May 28, 2024

Issue description

I set enable_recursive_icon_lookup to true in my dunstrc. After version 1.11.0, the icon is alway displayed in dunstify command. Like

dunstify "Hello"

image

In some cases, I don't want to show the icon in dunstify command. I've checked the dunstify --help menu, there doesn't seem to be a flag, like --no-icon, to disable the icon.

Installation info

  • Version: Dunst - A customizable and lightweight notification-daemon 1.11.0 (2024-04-15)
  • Install type: pacman
  • Window manager / Desktop environment: dwm
  • Distro: ArchLinux
Minimal dunstrc
[global]
    enable_recursive_icon_lookup = true
@bynect
Copy link
Member

bynect commented May 28, 2024

At the moment the icon have some default value (for historical reason I guess)
(The code responsible for this is at

.name = "icon",
. )

Can you try doing

[urgency_low]
icon =
default_icon = 

Otherwise I you just don't want icon you can set icon_position=off

PS: I noticed afterwards that you asked to do it in dunstify

there are two ways I can think of. One is to create a rule for a custom category to disable icons and using that category from dunstify

the other is passing an invalid icon path to dunstify -i GIBRISH

@eeeXun
Copy link
Author

eeeXun commented May 29, 2024

Oh, I don't know that's the default behavior.

And I found out that my problem was not caused by dunst 1.11.0, but by updating adwaita-icon-theme from 46.0 to 46.2. (Maybe the version before 46.2 is missing some icons. So I haven't encountered this problem before.)

there are two ways I can think of. One is to create a rule for a custom category to disable icons and using that category from dunstify

the other is passing an invalid icon path to dunstify -i GIBRISH

Yes, these could be the workaround for me. But could I request a feature of --no-icon flag or something like that in dunstify command? If this is not planned, feel free to close this issue.

@NicolasWebDev
Copy link

I have the same issue you're mentioning @eeeXun , since a system upgrade yesterday a default icon began to appear in my notifications. It must be a theme package that got upgraded because dunst itself was not upgraded.

Even though we can now set icon_position=off globally and in the rules (as mentionned in #1010 ), it's not really practical in my case because I just want to disable the default icon. If an icon is passed, then use that icon. So a flag for that would be quite useful indeed.

@bynect
Copy link
Member

bynect commented Jun 12, 2024

I have the same issue you're mentioning @eeeXun , since a system upgrade yesterday a default icon began to appear in my notifications. It must be a theme package that got upgraded because dunst itself was not upgraded.

Even though we can now set icon_position=off globally and in the rules (as mentionned in #1010 ), it's not really practical in my case because I just want to disable the default icon. If an icon is passed, then use that icon. So a flag for that would be quite useful indeed.

I'm planning to make it an option to disable this. Anyway you can set icon_position=off to specific notifications (in rules). From the dunstify command just pass a nonexistent icon with the -i flag

@bynect
Copy link
Member

bynect commented Jul 1, 2024

I have to correct myself. The right way to remove icon from dunstrc is doing new_icon = . Anyway I made a pr to fix this problem at the root

@bynect bynect linked a pull request Jul 1, 2024 that will close this issue
@bynect
Copy link
Member

bynect commented Jul 15, 2024

from now on icons should not be added by default

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

Successfully merging a pull request may close this issue.

3 participants