MCPcopy Index your code
hub / github.com/danieldg/rwaybar

github.com/danieldg/rwaybar @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
349 symbols 911 edges 19 files 24 documented · 7% updated 9mo ago★ 501 open issues

Browse by type

Functions 265 Types & classes 84
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

rwaybar

A taskbar for Wayland written in Rust. Works on any compositor supporting the layer_shell protocol (sway, most wlroots window managers, kwin).

Available Modules

  • Clock
  • Custom scripts
  • Disk (filesystem) free
  • File reader (for showing battery, temperature, load average, etc.)
  • MPRIS-compliant media player support
  • PulseAudio volume controller
  • Sway (workspaces, binding mode)
  • Tray

See the configuration documentation for details.

Other Features

  • Clicks can execute custom scripts or provide input to existing ones
  • Support for showing meters () and alerts.
  • Regular expressions
  • Simple expression evaluation
  • Config reload on SIGHUP

Building

cargo build --release
cp doc/rwaybar.toml ~/.config/
./target/release/rwaybar

Samples

sample bar

sample bar

These two samples are using the same configuration, only the background color differs. I like a transparent background on my taskbar, but I also configure my desktop background to be a slideshow. This means that I need the bar to be readable regardless of the color of the background, which was done in this example by using text-outline. The tray needs a solid background because some icons (kdeconnect, steam) aren't otherwise visible on light backgrounds.

Note: these images were captured on a scaled (HiDPI) output, which is why they appear double the size defined in the sample bar configuration.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 231
Class 65
Function 34
Enum 14
Interface 5

Languages

Rust100%

Modules by API surface

src/data.rs40 symbols
src/pulse_tokio.rs33 symbols
src/sway.rs32 symbols
src/dbus.rs30 symbols
src/tray.rs27 symbols
src/state.rs25 symbols
src/item.rs25 symbols
src/util.rs17 symbols
src/pulse.rs17 symbols
src/event.rs15 symbols
src/font.rs14 symbols
src/render.rs13 symbols

For agents

$ claude mcp add rwaybar \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page