Waybar: Difference between revisions

Phobos (talk | contribs)
No edit summary
34j (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 28: Line 28:


Please refer to [https://github.com/Alexays/Waybar/tree/master/resources the default configuration (config.jsonc and style.css)] and [https://github.com/Alexays/Waybar/wiki/Configuration wiki] for further information on configuration.
Please refer to [https://github.com/Alexays/Waybar/tree/master/resources the default configuration (config.jsonc and style.css)] and [https://github.com/Alexays/Waybar/wiki/Configuration wiki] for further information on configuration.
== Troubleshooting ==
=== Icon Fonts Missing ===
The default configuration uses <code>FontAwesome</code> font, which is only available in {{nixos:package|font-awesome_4}}, not in {{nixos:package|font-awesome}}, {{nixos:package|font-awesome_6}}, {{nixos:package|font-awesome_5}}, etc.
You may simply install {{nixos:package|font-awesome_4}}
{{file|/etc/nixos/configuration.nix|nix|3=
fonts.packages = with pkgs; [
  font-awesome_4
];
}}
or edit <code>style.css</code> to use your prefered font (e.g. {{nixos:package|font-awesome}}):
{{file|/etc/nixos/configuration.nix|nix|3=
fonts.packages = with pkgs; [
  font-awesome
];
}}
{{file|style.css|diff|3=
* {
    /* `otf-font-awesome` is required to be installed for icons */
-    font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;
+    font-family: Roboto, Helvetica, Arial, sans-serif, "Font Awesome 7 Free";
    font-size: 13px;
}
}}


[[Category:Applications]]
[[Category:Applications]]