You are not logged in.

#1 2024-02-06 12:55:31

iskander9908
Member
Registered: 2022-10-30
Posts: 30

[SOLVED] Notifications icons

I want to use papirus icons for battery notifications. But when I'm trying to use battery caution icon, it won't show.

notify-send -u critical "Battery low" -i "battery-caution.svg"

displays only text, however image exists.

ls /usr/share/icons/Papirus/16x16/panel/ | grep "battery-caution.svg"                                                                                                                 
battery-caution.svg
keyboard-battery-caution.svg
mouse-battery-caution.svg
phone-battery-caution.svg

Here is my dunst config

### Icons ###

    # Recursive icon lookup. You can set a single theme, instead of having to
    # Set icon theme (only used for recursive icon lookup)
    icon_theme = Papirus
    # define all lookup paths.
    enable_recursive_icon_lookup = true
    # You can also set multiple icon themes, with the leftmost one being used first.
    # icon_theme = "Adwaita, breeze"

    # Align icons left/right/top/off
    icon_position = left

    # Scale small icons up to this size, set to 0 to disable. Helpful
    # for e.g. small files or high-dpi screens. In case of conflict,
    # max_icon_size takes precedence over this.
    min_icon_size = 32

    # Scale larger icons down to this size, set to 0 to disable
    max_icon_size = 128

    # Paths to default icons (only neccesary when not using recursive icon lookup)
    icon_path = /usr/share/icons/Adwaita/16x16/devices/

Last edited by iskander9908 (2024-02-14 06:47:39)

Offline

#2 2024-02-06 12:59:15

dogknowsnx
Guest

Re: [SOLVED] Notifications icons

Try with a capital '-I' or use the full path with '-i'...
https://wiki.archlinux.org/title/Dunst

#3 2024-02-06 14:01:08

iskander9908
Member
Registered: 2022-10-30
Posts: 30

Re: [SOLVED] Notifications icons

dogknowsnx wrote:

use the full path with '-i'...

I just want to know the reason why it's not working without providing full path.

Last edited by iskander9908 (2024-02-06 14:21:36)

Offline

#4 2024-02-06 15:47:00

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 66,333

Re: [SOLVED] Notifications icons

echo $XDG_DATA_DIRS

https://github.com/dunst-project/dunst/issues/1270

Also remove the suffix, "battery-caution", not "battery-caution.svg"

Offline

#5 2024-02-07 06:05:37

iskander9908
Member
Registered: 2022-10-30
Posts: 30

Re: [SOLVED] Notifications icons

Seems like recursive icon lookup doesn't work properly. Fortunately, after disabling it icons appear.

Offline

#6 2024-02-07 07:10:05

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 66,333

Re: [SOLVED] Notifications icons

Seems you kinda ignored my post: you're not supposed to issue a suffix and echo you export an XDG_DATA_DIR other than /use/share, you're recursing through the wrong path

Offline

#7 2024-02-07 07:51:34

iskander9908
Member
Registered: 2022-10-30
Posts: 30

Re: [SOLVED] Notifications icons

seth wrote:

Seems you kinda ignored my post: you're not supposed to issue a suffix and echo you export an XDG_DATA_DIR other than /use/share, you're recursing through the wrong path

Oh, yeah. That's fix my problem, thank you.

Offline

Board footer

Powered by FluxBB