A Rust implementation of the KDE/freedesktop StatusNotifierItem specification
```rust use ksni::{self, menu, tray};
fn main() {
struct MyTray;
impl ksni::Tray for MyTray {
type Err = std::convert::Infallible;
fn trayproperties() -> tray::Properties {
tray::Properties {
iconname: "music".toowned(),
..Default::default()
}
}
fn menu() -> Vec
ksni::run(MyTray);
} ```
Will create a system tray like this:
(In GNOME with AppIndicator extension)
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.