bar | ||
completions | ||
decorations | ||
doc | ||
external | ||
modules | ||
particles | ||
test | ||
.build.yml | ||
.gitignore | ||
.gitlab-ci.yml | ||
.gitmodules | ||
color.h | ||
config-verify.c | ||
config-verify.h | ||
config.c | ||
config.h | ||
decoration.h | ||
generate-version.sh | ||
LICENSE | ||
log.c | ||
log.h | ||
main.c | ||
meson.build | ||
meson_options.txt | ||
module.c | ||
module.h | ||
particle.c | ||
particle.h | ||
PKGBUILD | ||
PKGBUILD.wayland-only | ||
plugin.c | ||
plugin.h | ||
README.md | ||
screenshot.png | ||
stride.h | ||
tag.c | ||
tag.h | ||
xcb.c | ||
xcb.h | ||
yambar.desktop | ||
yml.c | ||
yml.h |
Yambar
Index
Introduction
yambar is a light-weight and configurable status panel (bar, for short) for X and Wayland.
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. These are things like a different background, or an graphical underline.
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
Yambar is configured using YAML, in ~/.config/yambar/config.yml
. It
must define a top-level dictionary named bar:
bar:
height: 26
location: top
background: 000000ff
right:
- clock:
content:
- string: {text: , font: "Font Awesome 5 Free:style=solid:size=12"}
- string: {text: "{date}", right-margin: 5}
- string: {text: , font: "Font Awesome 5 Free:style=solid:size=12"}
- string: {text: "{time}"}
For details, see the man pages (yambar(5) is a good start).
Modules
Available modules:
- alsa
- backlight
- battery
- clock
- i3 (and Sway)
- label
- mpd
- network
- removables
- xkb (XCB backend only)
- xwindow (XCB backend only)
Installation
If you have not installed tllist
and fcft as system libraries, clone
them into the subprojects
directory:
mkdir -p subprojects
pushd subprojects
git clone https://codeberg.org/dnkl/tllist.git
git clone https://codeberg.org/dnkl/fcft.git
popd
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 --buildtype=release ../..
Three, build it:
ninja
Optionally, install it:
ninja install