Skip to content
FossShelf
Home / Categories / For Engineers

Waybar

Customizable Wayland bar for wlroots compositors

Replaces —

12.17K starsMITlast commit 10 Nov 2026
Screenshot of Waybar

Who it's for

Sway or Hyprland power user

Users who have switched from X11 tiling window managers to Sway or Hyprland and want a fully featured status bar with workspace switching, system stats, media controls, and a system tray in a single configurable tool.

User is on an X11 session or a non-wlroots Wayland compositor such as GNOME Mutter or KWin.

Minimal Wayland setup builder

Users assembling a bespoke Wayland environment around a bare compositor who need a bar that integrates with their compositor's IPC rather than a generic X11-compatible panel that ignores Wayland-specific features.

User wants a full desktop environment with an integrated panel.

Theme and rice enthusiast

Users who want pixel-level control over their desktop's status bar appearance via CSS without compiling anything, and who share or borrow configurations from the community Examples wiki.

The problem

Wayland compositors based on wlroots lack a built-in status bar, leaving users without workspace indicators, system stats, media controls, and tray support unless they assemble these themselves. X11-era bars do not support Wayland protocols, so wlroots users need a bar built specifically for the Wayland ecosystem that integrates natively with compositor-specific IPC rather than relying on deprecated X11 mechanisms.

How it works

Multi-compositor integration

Native modules exist for Sway, Hyprland, River, Niri, Mango, DWL, Wayfire, and Umbriel, exposing workspaces or tags, the active window title, layout name, keyboard language, and compositor mode where each compositor's IPC supports them.

Extensive module library

Over 30 modules cover power and hardware (battery, CPU, memory, disk, temperature, backlight), connectivity (network, Bluetooth, GPS, WWAN), audio and media (PulseAudio, WirePlumber, JACK, sndio, Cava, MPD, MPRIS), and desktop features (clock, tray, idle inhibitor, keyboard state, privacy, Gamemode, systemd failed units, custom scripts).

JSON configuration and CSS styling

The bar and every module are configured through a JSON file copied to `~/.config/waybar/`. Visual appearance is controlled separately via a CSS stylesheet in the same directory, allowing full theming without touching C++ source code.

Ships a working default config

Waybar launches immediately with a built-in default configuration so users have a functional bar on first run. The default config and stylesheet can be copied to the user config directory as a starting point for customization.

Custom script modules

The custom module type lets users run arbitrary shell scripts and display their output in the bar, enabling integrations with any tool not covered by a built-in module.

Packaged in all major distributions

Waybar is available in the official repositories of most major Linux distributions. An Ubuntu PPA maintained by a third party provides more recent versions for Ubuntu users who need them.

Features

  • Multi-compositor integration
  • Extensive module library
  • JSON configuration and CSS styling
  • Ships a working default config
  • Custom script modules
  • Packaged in all major distributions

How to install

git clone https://github.com/Alexays/Waybar cd Waybar meson setup build ninja -C build ./build/waybar

Recommended for this setup

Strengths

  • Deep per-compositor workspace and mode support: Rather than a generic workspace protocol, Waybar implements dedicated modules for each compositor's own IPC, giving accurate workspace names, layout indicators, and mode displays that generic bars cannot match.
  • No recompilation needed to customize: All behavior is driven by the JSON config and all appearance by CSS. Users can add, remove, reorder, and restyle modules by editing two text files, making iteration fast and accessible to non-C++ users.
  • Broad audio stack coverage: Support for PulseAudio, WirePlumber, JACK, and sndio means Waybar works across the common Linux audio stacks without requiring users to adapt their audio setup to match the bar.
  • Active distribution packaging: Being packaged in most major distributions means installation is a single package manager command on common setups, with no need to manage build dependencies manually.

Trade-offs

  • Wayland only: Waybar is built exclusively for Wayland compositors that use wlroots or compositor-specific protocols. It does not run on X11 desktop environments, so users on GNOME, KDE, or any X11 session need a different bar.
  • GTK3 dependency: The bar is built on GTK3 and gtkmm3, pulling in the GTK toolkit and its dependencies. Users running minimal compositors to avoid GTK overhead will still need GTK libraries installed.
  • Build from source requires several dependencies: Building Waybar from source requires gtkmm3, jsoncpp, libsigc++, fmt, wayland, spdlog, and several optional libraries for specific modules. On distributions without binary packages, managing these dependencies adds friction.
  • DWL requires a patch: DWL integration requires the dwl IPC patch to be applied to the DWL compositor before the Waybar DWL module will work. Users running stock DWL binaries without the patch cannot use the workspace and window modules.

Tech stack

Languages
C++, Shell, Python, Meson, C, Dockerfile, CSS, Nix, Makefile
Frameworks
—
Databases
—
Tooling
—

FAQ

Which Wayland compositors does Waybar support?

Waybar has dedicated modules for Sway, Hyprland, River, Niri, Mango, DWL, Wayfire, and Umbriel. The level of integration varies by compositor: Sway, Hyprland, River, and Mango support workspaces, window title, language, and mode; DWL and Wayfire support workspaces and window title. DWL additionally requires the dwl IPC patch.

How do I customize Waybar?

Copy the default config and stylesheet from the Waybar resources directory to `~/.config/waybar/` and edit them. The config file is JSON and controls which modules appear and their options. The style file is CSS and controls all visual properties. The Configuration and Styling guides on the Waybar wiki document every available option.

Does Waybar work on X11?

No. Waybar is a Wayland-native bar built on Wayland protocols and wlroots compositor IPC. It does not run on X11 desktop environments.

How do I install Waybar?

Waybar is packaged in most major Linux distributions and can be installed through the system package manager. An Ubuntu PPA is available for more recent versions. To build from source, clone the repository and run `meson setup build` followed by `ninja -C build`.

Can I display output from my own scripts in the bar?

Yes. The custom module type runs an arbitrary shell command and displays its standard output in the bar. It supports click actions, tooltips, and interval-based refresh, making it suitable for integrating any tool not covered by a built-in module.

Similar tools

More in Engineers