Skip to content

Async Rust implementation of the StatusNotifierItem and DbusMenu protocols for building system trays.

Notifications You must be signed in to change notification settings

JakeStanger/system-tray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

System Tray

An async implementation of the StatusNotifierItem and DbusMenu protocols for building system trays.

Requires Tokio.

Example

use system_tray::client::Client;

#[tokio::main]
async fn main() {
    let client = Client::new().await.unwrap();
    let mut tray_rx = client.subscribe();

    let initial_items = client.items();
    
    // do something with initial items...
    
    while let Ok(ev) = tray_rx.recv().await {
        println!("{ev:?}"); // do something with event...
    }
}

About

Async Rust implementation of the StatusNotifierItem and DbusMenu protocols for building system trays.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages