You are not logged in.
Pages: 1
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
Try with a capital '-I' or use the full path with '-i'...
https://wiki.archlinux.org/title/Dunst
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
echo $XDG_DATA_DIRS
https://github.com/dunst-project/dunst/issues/1270
Also remove the suffix, "battery-caution", not "battery-caution.svg"
Offline
Seems like recursive icon lookup doesn't work properly. Fortunately, after disabling it icons appear.
Offline
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
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
Pages: 1