Jump to content

Waybar: Difference between revisions

From Official NixOS Wiki
34j (talk | contribs)
mNo edit summary
Phobos (talk | contribs)
No edit summary
 
Line 11: Line 11:
== Configuration ==
== Configuration ==


Waybar can be configured using [[Home Manager]]:
Waybar can be configured using options found on the [[Home Manager|Home Manager Appendix]]. You can also find configuration options under [https://mynixos.com/home-manager/options/programs.waybar home-manager/options/programs/waybar] on [https://mynixos.com/ mynixos].


{{file|~/.config/home-manager/home.nix|nix|3=
{{file|~/.config/home-manager/home.nix|nix|3=

Latest revision as of 19:03, 29 November 2025

Waybar is a highly customizable Wayland bar.

Installation

Waybar can be installed from both configuration.nix and Home Manager:

❄︎ /etc/nixos/configuration.nix or ~/.config/home-manager/home.nix
programs.waybar.enable = true;

Configuration

Waybar can be configured using options found on the Home Manager Appendix. You can also find configuration options under home-manager/options/programs/waybar on mynixos.

❄︎ ~/.config/home-manager/home.nix
programs.waybar.settings.main = {
  modules-right = ["clock"];
};
# programs.waybar.style = "";

Alternatively, you may configure using JSONC (and CSS) file(s) by:

❄︎ ~/.config/home-manager/home.nix
xdg.configFile."waybar/config.jsonc".source = ./waybar/config.jsonc;
# xdg.configFile."waybar/style.css".source = ./waybar/style.css;

Please refer to the default configuration (config.jsonc and style.css) and wiki for further information on configuration.