Aylur / dotfiles

My personal config files
Other
2.53k stars 129 forks source link

[Doubt] How to make icon packs recognized by ags? #192

Closed blacklightpy closed 7 months ago

blacklightpy commented 7 months ago

I have Breeze icon pack, which supplies icons like void-logo and preferences-system-linux-symbolic.

But it doesn't have firefox-symbolic.

I found that only Adwaita Plus and Yaru Plus had it. But even though I installed them and restarted ags, ags won't recognize their existence, unless I paste the complete path.

How can I get it to recognize the installed icon set?

Aylur commented 7 months ago

gtk will only search from one icon pack at a time just copy a firefox-symbolic.svg file into the assets directory

blacklightpy commented 7 months ago

I guess colour icons would be the way to go here unless I plan on copying symbolic icons for every app I use.

blacklightpy commented 7 months ago

I figured it out. If you want symbolic icons for 3rd party apps, after installing the icon pack, you also have to set it, by using something like nwg-look.

~Basically it just edits the ~/.gtkrc-2.0, ~/.config/gtk-3.0/settings.ini and ~/.config/gtk-4.0/settings.ini to use the specified icon pack, which is also referred to as the icon theme.~

~You could also use hyprland.conf to set env = GTK_THEME, <theme> to skip using programs like nwg-look.~

Environment variables don't work for things other than the styles, and we have to set them with gsettings on Wayland. This is part of what the GUI applications do in the background. The GDK Wayland backend does not take some variables form the config files, including the colour scheme and icon theme.

So we need to use gsettings set $gnome-schema icon-theme 'Your icon theme'

Other gsettings commands related to themes are:

gsettings set $gnome-schema gtk-theme 'Your theme'
gsettings set $gnome-schema cursor-theme 'Your cursor Theme'
gsettings set $gnome-schema font-name 'Your font name'