use hyprrust::commands::prelude::*;
use hyprrust::HyprlandConnection;
fn main() {
let conn = HyprlandConnection::current().unwrap();
let commands = [
set_floating(WindowArgument::ActiveWindow),
resize_active_window(ResizeArgument::Exact(
NumPercent::Number(400),
NumPercent::Number(400),
)),
move_window_in_direction(DirectionArgument::Up, true),
move_window_in_direction(DirectionArgument::Right, true),
pin_window(WindowArgument::ActiveWindow),
];
match conn.send_recipe_sync(&commands) {
Ok(()) => println!("successful"),
Err(errors) => println!("{:?}", errors),
}
}