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

Icons not displaying for some apps #59

Closed
Sohail-XD opened this issue Aug 13, 2023 · 8 comments
Closed

Icons not displaying for some apps #59

Sohail-XD opened this issue Aug 13, 2023 · 8 comments

Comments

@Sohail-XD
Copy link

Sohail-XD commented Aug 13, 2023

I have hicolor and other default themes that have "inherit = hicolor,breeze", so there shouldn't be a problem with icon not existing.

image

@Sohail-XD
Copy link
Author

The two applications in the ss without icons are Pamac-manager and Anki

@Aylur
Copy link
Owner

Aylur commented Aug 13, 2023

these icons are derived from the client's class which you can get by running hyprctl clients -j, but sometimes this class doesn't match with the icon name, and you have to manually substitute it
in layouts/widgets/overview.js there is a substitute function where you can add them

@Sohail-XD
Copy link
Author

Sohail-XD commented Aug 13, 2023

This is not an issue for just a few apps. It happens if the package is from the aur. In the below picture "code" is displayed but other packages with no image are not. Is there a way to make it behave like rofi?

image

@Aylur
Copy link
Owner

Aylur commented Aug 13, 2023

the only way to check for running apps is hyprctl -j clients as far as I know and the only information there that could hint for an icon name is class

@Sohail-XD
Copy link
Author

Is there an example, how to use substitute function? There is from carpine to facebook messenger. Should I add other app names like that under it?

@Aylur
Copy link
Owner

Aylur commented Aug 13, 2023

yeah just add whatever you want to that function { from: <class>, to: <icon-name> }

@Sohail-XD
Copy link
Author

Omg it's working & the problem was because of one capital letter??? wow. Super easy. Thanks for clearing beginner doubts.

@Sohail-XD Sohail-XD reopened this Aug 13, 2023
@Sohail-XD
Copy link
Author

Sohail-XD commented Aug 13, 2023

How do I increase the icon size?

Edit: Found it in config as baseIconSize

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

No branches or pull requests

2 participants