hyprrust 0.2.1

A crate that provides an interface with the Hyprland sockets.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use futures::StreamExt;
use hyprrust::{
    events::{single_event::DetachedEventConnection, EventFilter},
    HyprlandConnection,
};

#[tokio::main]
async fn main() {
    let conn = HyprlandConnection::current().unwrap();
    let mut ev_conn =
        DetachedEventConnection::from_connection(conn, EventFilter::new_include_all())
            .await
            .unwrap();

    while let Some(ev) = ev_conn.next().await {
        println!("{:?}", ev);
    }
}