1
0
Fork
You've already forked yambar
0
forked from dnkl/yambar
Fork for @snowytrees tray module testing
  • C 96.4%
  • Meson 2.7%
  • Yacc 0.4%
  • Shell 0.3%
  • Lex 0.2%
Find a file
2024年08月23日 13:05:02 +03:00
.builds ci (sr.ht): it’s pulseaudio-dev, not libpulse-dev 2022年12月13日 10:47:07 +01:00
3rd-party/nanosvg nanosvg: silence warnings from gcc-14 [ https://github.com/libsdl-org/SDL_image/issues/452 ] 2024年08月23日 12:26:41 +03:00
bar rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
completions main: change default log level to warning 2024年01月03日 15:20:31 +01:00
decorations Apply "clang-format" preferences globally 2024年04月07日 10:05:10 +02:00
doc tag: add 'b' formatter 2024年08月20日 14:34:45 +02:00
examples Fix remaining typos in the codebase (and update CI checks) 2024年05月02日 16:28:51 +00:00
external module/river: add support for ‘layout’ events 2023年01月12日 18:15:16 +01:00
modules tray: add basu and elogind as sd-bus optional libraries 2024年08月23日 13:05:02 +03:00
nanosvg rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
particles rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
subprojects subprojects: use meson wrap files for tllist+fcft 2020年12月25日 12:22:15 +01:00
test Fix CI failing due to outdated test config file 2024年04月01日 08:46:50 +00:00
.clang-format Apply "clang-format" preferences globally 2024年04月07日 10:05:10 +02:00
.editorconfig misc: add format files for clang-format and editorconfig 2021年12月21日 18:44:37 +01:00
.gitignore subprojects: use meson wrap files for tllist+fcft 2020年12月25日 12:22:15 +01:00
.gitmodules fcft/tllist: remove git submodules 2020年01月11日 14:43:26 +01:00
.woodpecker.yaml Fix remaining typos in the codebase (and update CI checks) 2024年05月02日 16:28:51 +00:00
CHANGELOG.md tag: add 'b' formatter 2024年08月20日 14:34:45 +02:00
char32.c Apply "clang-format" preferences globally 2024年04月07日 10:05:10 +02:00
char32.h Apply "clang-format" preferences globally 2024年04月07日 10:05:10 +02:00
color.h
config-verify.c rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
config-verify.h rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
config.c rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
config.h rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
decoration.h Apply "clang-format" preferences globally 2024年04月07日 10:05:10 +02:00
font-shaping.h config: add inheritable option "font-shaping" 2022年02月23日 18:43:13 +01:00
generate-version.sh generate-version: handle git repo not having any tags 2021年10月11日 20:21:07 +02:00
icon.c rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
icon.h rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
LICENSE license: MIT 2019年01月02日 11:24:28 +01:00
log.c log: respect the NO_COLOR environment variable 2024年07月18日 08:31:46 +02:00
log.h Apply "clang-format" preferences globally 2024年04月07日 10:05:10 +02:00
main.c Apply "clang-format" preferences globally 2024年04月07日 10:05:10 +02:00
meson.build rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
meson_options.txt rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
module.c Apply "clang-format" preferences globally 2024年04月07日 10:05:10 +02:00
module.h Apply "clang-format" preferences globally 2024年04月07日 10:05:10 +02:00
nanosvg.c rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
nanosvgrast.c rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
particle.c rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
particle.h rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
PKGBUILD rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
PKGBUILD.wayland-only meson/pkgbuild: bump version to 1.11.0 2024年04月17日 10:30:54 +02:00
plugin.c rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
plugin.h Apply "clang-format" preferences globally 2024年04月07日 10:05:10 +02:00
png-yambar.h rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
png.c rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
README.md readme: repology: use four columns 2024年08月20日 09:11:17 +02:00
screenshot.png screenshot: update 2019年09月28日 21:20:03 +02:00
stride.h font: initial port from cairo scaled fonts to raw freetype + pixman 2019年09月22日 00:50:11 +02:00
stringop.c rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
stringop.h rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
svg.c rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
svg.h rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
tag.c rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
tag.h rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
xcb.c Apply "clang-format" preferences globally 2024年04月07日 10:05:10 +02:00
xcb.h xcb: extern declare cached XCB atoms in header file 2020年06月05日 13:30:08 +02:00
xdg.c rebase to @snowytrees pull request 2024年08月23日 12:04:07 +03:00
yambar.desktop desktop: add Desktop Entry file 2019年09月29日 20:58:15 +02:00
yml.c yml: replace_env_variables(): const:ify function variables 2024年06月09日 10:05:21 +02:00
yml.h Apply "clang-format" preferences globally 2024年04月07日 10:05:10 +02:00

CI status

Yambar

Packaging status

Index

  1. Introduction
  2. Configuration
  3. Modules
  4. Installation
  5. Bugs

Introduction

screenshot

yambar is a lightweight and configurable status panel (bar, for short) for X11 and 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

Yambar is configured using YAML, in ~/.config/yambar/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 (yambar(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
  • xkb (XCB backend only)
  • xwindow (XCB backend only)

Installation

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 ../..

Optionally, explicitly disable a backend (or enable, if you want a configuration error if not all dependencies are met) by adding either -Dbackend-x11=disabled|enabled or -Dbackend-wayland=disabled|enabled to the meson command line.

Three, build it:

ninja

Optionally, install it:

ninja install

Bugs

Please report bugs to https://codeberg.org/dnkl/yambar/issues

The report should contain the following:

  • Which Wayland compositor (and version) you are running
  • Yambar version (yambar --version)
  • Log output from yambar (start yambar from a terminal)
  • If reporting a crash, please try to provide a bt full backtrace with symbols (i.e. use a debug build)
  • Steps to reproduce. The more details the better