- C 96.2%
- Meson 2.8%
- Yacc 0.4%
- Lex 0.3%
- Shell 0.3%
Maybar
Index
Introduction
maybar is a lightweight and configurable status panel (bar, for short) for Wayland, that goes to great lengths to be both CPU and battery efficient - polling is only done when absolutely necessary.
It has a number of modules that provide information in the form of tags. For example, the clock module has a date tag that contains the current date.
The modules do not know how to present the information though. This is instead done by particles. And the user, you, decides which particles (and thus how to present the data) to use.
Furthermore, each particle can have a decoration - a background color or a graphical underline, for example.
There is no support for images or icons. use an icon font (e.g. Font Awesome, or Material Icons) if you want a graphical representation.
There are a number of modules and particles builtin. More can be added as plugins. You can even write your own!
To summarize: a bar displays information provided by modules, using particles and decorations. How is configured by you.
Configuration
Maybar is configured using YAML, in ~/.config/maybar/config.yml. It
must define a top-level dictionary named bar:
bar:height:26location:topbackground:000000ffright:- clock:content:- string:{text: , font:"Font Awesome 6 Free:style=solid:size=12"}- string:{text:"{date}", right-margin:5}- string:{text: , font:"Font Awesome 6 Free:style=solid:size=12"}- string:{text:"{time}"}For details, see the man pages (maybar(5) is a good start).
Example configurations can be found in examples.
Modules
Available modules:
- alsa
- backlight
- battery
- clock
- cpu
- disk-io
- dwl
- foreign-toplevel
- i3 (and Sway)
- label
- mem
- mpd
- network
- pipewire
- pulse
- removables
- river
- script (see script examples)
- sway-xkb
- weather
Installation
Arch Linux (AUR)
yay -S maybar-git
# or
paru -S maybar-git
Fedora (copr)
dnf install 'dnf-command(copr)'
dnf copr enable mathstuf/maybar
dnf install maybar
Building from source
To build, first, create a build directory, and switch to it:
mkdir -p bld/release && cd bld/release
Second, configure the build (if you intend to install it globally, you
might also want --prefix=/usr):
meson setup --buildtype=release ../..
Third, build it:
ninja
Optionally, install it:
ninja install
Bugs
Please report bugs to https://codeberg.org/mathstuf/maybar/issues
The report should contain the following:
- Which Wayland compositor (and version) you are running
- Maybar version (
maybar --version) - Log output from maybar (start maybar from a terminal)
- If reporting a crash, please try to provide a
bt fullbacktrace with symbols (i.e. use a debug build) - Steps to reproduce. The more details the better