Hyprland-rs
An unofficial rust wrapper for Hyprland's IPC
Disclaimer
If something doesn't work, doesn't matter what, make sure you are on the latest commit of Hyprland before making an issue!
Getting started!
Let's get started with Hyprland-rs!
Adding to your project
Add the code below to the dependencies section of your Cargo.toml file!
= "0.3.2"
Master version
If Hyprland-rs is broken (or other reason) and is taking too long for a release to come out,
you can use the master branch in Cargo (will not allow the crate to be published to crates.io
):
= { = "https://github.com/hyprland-community/hyprland-rs", = "master" }
What this crate provides
This crate provides 6 modules (+1 for shared things)
data
for getting information on the compositorevent_listener
which provides theEventListener
struct for listening for eventsdispatch
for calling dispatcherskeyword
for dealing with config option (aka keywords)config::binds
for changing binds (in futureconfig
might have config generation)ctl
for calling hyprctl commands
Example Usage
Check the examples in the src/bin/
directory