Rust library for creating output for UNIX-style desktop bars like i3bar/swaybar, dzen2, lemonbar https://crates.io/crates/unixbar
Find a file
2022-10-03 01:30:33 +03:00
examples Format code using 'cargo fmt' 2019-09-11 22:12:56 +05:30
src Fix clippy warnings 2019-09-20 18:33:08 +02:00
.gitignore initial commit 2016-02-18 16:29:53 +03:00
build.rs Format code using 'cargo fmt' 2019-09-11 22:12:56 +05:30
Cargo.toml update metadata 2022-10-03 01:27:12 +03:00
CODE_OF_CONDUCT.md project stuff 2016-02-18 23:24:33 +03:00
README.md update readme 2022-10-03 01:30:33 +03:00
UNLICENSE project stuff 2016-02-18 23:24:33 +03:00

crates.io unlicense

unixbar

A better way to set up your lemonbar/dzen2/i3bar: with Rust and cargo-script instead of shell scripting or dynamic languages.

Screenshot

Included widgets:

  • date/time
  • systemstat CPU/RAM/etc. measurements
  • XKB current keyboard layout
  • music via D-Bus MPRIS (Rhythmbox, Clementine, Spotify, etc.) or MPD
  • volume via Linux ALSA or FreeBSD mixer
  • bspwm desktops

Features:

  • colors
  • alignment
  • separator control (i3bar)
  • click handlers (both shell and Rust code in i3bar, only shell in lemonbar and dzen2)
  • possible to disable systemstat, XKB (libxcb), D-Bus from the build via Cargo features

Usage

See examples/demo.rs.

License

This is free and unencumbered software released into the public domain.
For more information, please refer to the UNLICENSE file or unlicense.org.