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 recognized #117

Closed
ddorstijn opened this issue Dec 3, 2018 · 13 comments
Closed

Icons not recognized #117

ddorstijn opened this issue Dec 3, 2018 · 13 comments
Labels
question Further information is requested

Comments

@ddorstijn
Copy link

I just installed arch linux. Together with sway and waybar. I can het the configuration working and enjoying it so far. The only problem is that I cannot render any icons. Do you need to set a special font for it? Can I make it use the icon theme in some way?

While I am at it, is there also a way to look up what is possible? I can't find anything about icons in the wiki, so I was wondering if I am looking in the wrong place.

@Alexays Alexays added the question Further information is requested label Dec 3, 2018
@Alexays
Copy link
Owner

Alexays commented Dec 3, 2018

You need to install otf-font-awesome to get the icons of the default configuration ;)

@4ndril
Copy link

4ndril commented Apr 18, 2019

this is happening to me and i have that package installed

@Alexays
Copy link
Owner

Alexays commented Apr 19, 2019

@4ndril Do you have any other font-awesome packages installed?

@alexei-grigoriev
Copy link

You need to install otf-font-awesome to get the icons of the default configuration ;)

could you please mention that somewhere in config comments?

@Alexays
Copy link
Owner

Alexays commented Oct 2, 2019

You need to install otf-font-awesome to get the icons of the default configuration ;)

could you please mention that somewhere in config comments?

Done in 6d5e328

@moghaazi
Copy link

moghaazi commented Jun 2, 2022

I've otf-font-awesome installed and still icons are not appearing.

@DiskyToy
Copy link

DiskyToy commented Sep 5, 2023

I have had a similar problem just now.
I had ttf-font-awesome installed and otf-font-awesome caused some weird looking fonts (like moghaazi has in his screenshot) that i did not want to use.
To fix the missing icons (in my case arrows), i had to install ttf-jetbrains-mono and relaunch waybar.

@DavidOliver
Copy link

In NixOS Stable 23.11, adding font-awesome to fonts.packages in configuration.nix fixes missing icons for me in the default config.

@jmastr
Copy link

jmastr commented Jan 19, 2024

In NixOS Stable 23.11, adding font-awesome to fonts.packages in configuration.nix fixes missing icons for me in the default config.

Confirmed. That works beautifully.

@Deep-Six
Copy link

Deep-Six commented Feb 3, 2024

@DavidOliver , @jmastr This didn't work for me, installed font-awesome , font-awesome_4, font-awesome_5, and font-awesome_6 and still no luck. Do you have your style.css and config handy?

@jmastr
Copy link

jmastr commented Feb 3, 2024

@Deep-Six Honestly all I did it this:

   fonts.packages = with pkgs; [
+    font-awesome
     inter
   ];

and put the default config and style.css (in my case under /nix/store/vyavqxxm5n4jmb443195jcgajwbi0qca-waybar-0.9.24/etc/xdg/waybar/:

$ ls -l /nix/store/vyavqxxm5n4jmb443195jcgajwbi0qca-waybar-0.9.24/etc/xdg/waybar/
total 16
-r--r--r-- 1 root root 5655 Jan  1  1970 config
-r--r--r-- 1 root root 4509 Jan  1  1970 style.css

into my home directory under ~/.config/waybar/.

I think the last step is not even necessary, because if there is no config in your home it will fall back to the default...

@jmastr
Copy link

jmastr commented Feb 3, 2024

@Deep-Six Of course after you switched your NixOS config via $ sudo nixos-rebuild switch you might need to manually reload your waybay config. In my case I use Sway and a simple Mod4+Shift+c works.

Hope that helps...

@Deep-Six
Copy link

Deep-Six commented Feb 7, 2024

Unfortunately not, I am using home.file to generate my config, so I guess my config isn't in the nix store, but I don't think that should matter. I might be stumbling against some sort of nix isolation business, but pure speculation. Annoying, I've added all the font-awesome's to my configuration.nix, iteratively, and of course rebuilt, no luck.

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

No branches or pull requests

9 participants