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

is there a method for validating local icons? #48

Open
BrianZbr opened this issue Dec 21, 2024 · 1 comment
Open

is there a method for validating local icons? #48

BrianZbr opened this issue Dec 21, 2024 · 1 comment

Comments

@BrianZbr
Copy link

It is helpful that the README links to the FontAwesome gallery, but in my experience it's very hit-or-miss to know whether and how an icon listed there will actually work. I find "firefox", "chrome", "etsy", "product-hunt", "code-branch" and others are working as expected. However "w" doesn't show an icon at all, "water" shows a small letter s, "wind" shows a block with hex codes, etc.

I tried installing gucharmap and I'm even more confused. There seems to be no correspondence between what I see available there and what actually works with the daemon.

Any ideas, other then trial and error, in terms of how I can see exactly what icons I have available on my system?

@phsh-urs
Copy link

phsh-urs commented Jan 15, 2025

Hey! The following worked for me. Look in the project file fa_icons.py (namely https://github.com/cboddy/i3-workspace-names-daemon/blob/master/fa_icons.py) and search for the icon you want(you can try and guess a name, but you can also serach in FontAwesome gallery, check its unicode and then search in fa_icons.py to see if it is there).

It may happen that the icon you look for is not in fa_icons.py. What I did (in my case, I wanted to add the firefox-browser icon which, as in FontAwesome, website has unicode e007, in order to replace the "firefox" one that there is in the project), was to fork the project and and the following the line following in fa_icons.py
"firefox-browser": u"\ue007",
then I add "firefox-browser" to my app-icons.json and it worked nicely (you can check my fork https://github.com/phsh-urs/i3-workspace-names-daemon if what I sad was not clear enough).

It think it would be more organized to be able to put directly the unicode of the icon in app-icons.json, since it would avoid having to fork the project just to add some icons; but I don't know if this is posible.

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