polybar-mpris-watcher-rs

Crates.iopolybar-mpris-watcher-rs
lib.rspolybar-mpris-watcher-rs
version1.1.2
created_at2025-07-29 19:39:38.573236+00
updated_at2025-08-03 16:59:00.239525+00
descriptionA good music status display for polybar
homepage
repositoryhttps://github.com/elliotcubit/polybar-mpris-watcher-rs
max_upload_size
id1772726
size67,313
Elaine Cubit (elliotcubit)

documentation

README

polybar-mpris-watcher-rs

A good music status display for polybar.

It uses DBus to display the currently playing media. The text size and scrolling rate are configurable.

It supports extended unicode characters, parsing them by grapheme cluster.

Pass --(i)nclude-controls to include basic control buttons. This will shorten the display window such that the overall width is --(b)anner-size.

Demo

demo demo demo

Installation

polybar-mpris-watcher-rs is available on crates.io, and can be installed via cargo:

$ cargo install polybar-mpris-watcher-rs

You will need to add a polybar module which uses the installed binary. This is where configuration is done.

[module/music]
type = custom/script
exec = "polybar-mpris-watcher-rs -u 2000 -b 25"
tail = true

Add the module wherever in your polybar, e.g. in the middle:

modules-center = music

Font debugging

If you have trouble with some characters not displaying, give the polybar wiki page on fonts a read.

Commit count: 0

cargo fmt