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
use std::error::Error;

use hyprrust::commands::prelude::*;
use hyprrust::HyprlandConnection;

fn main() -> Result<(), Box<dyn Error>> {
    let conn = HyprlandConnection::current().unwrap();

    let command = set_floating(WindowArgument::Tiled);

    conn.send_command_sync(&command)?;
    println!("sucessful");

    Ok(())
}