#tray #status-bar #system #cross-platform #taskbar #macos #say

sysbar

Library for interacting with the system's taskbar / tray / statusbar

4 releases (2 breaking)

0.3.0 Sep 23, 2021
0.2.1 Aug 22, 2021
0.2.0 Dec 27, 2019
0.1.0 Aug 7, 2017

#3 in #say

32 downloads per month

MIT/Apache

12KB
212 lines

rust-sysbar

Library for interacting with the system's taskbar / tray / statusbar. It aims to be cross-platform, but currently only supports macOS. If have some extra time and are interested in implementing this for other platforms, contributions would be greatly appreciated! This project is a fork of rs-barfly.

Example

let mut bar = sysbar::Sysbar::new("Foo");

bar.add_item(
    "Say 'bar'",
    Box::new(move || {
        println!("bar");
    }),
);

bar.add_quit_item("Quit");

bar.display();

Resulting screenshot of code above

See also

License

Licensed under either of

at your option.

Dependencies

~0–1.3MB
~25K SLoC