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
use hyprrust::{
    events::{single_event_sync::DetachedEventConnection, EventFilter},
    HyprlandConnection,
};

fn main() {
    let conn = HyprlandConnection::current().unwrap();
    let ev_conn =
        DetachedEventConnection::from_connection(conn, EventFilter::new_include_all()).unwrap();

    for ev in ev_conn {
        println!("{:?}", ev);
    }
}