23 releases

new 0.4.0-beta.2 Nov 24, 2024
0.4.0-alpha.3 Aug 28, 2024
0.4.0-alpha.2 May 7, 2024
0.3.13 Feb 3, 2024
0.2.4 Aug 18, 2022

#33 in GUI

Download history 1472/week @ 2024-08-04 1367/week @ 2024-08-11 1345/week @ 2024-08-18 1608/week @ 2024-08-25 1593/week @ 2024-09-01 1555/week @ 2024-09-08 1345/week @ 2024-09-15 1650/week @ 2024-09-22 1376/week @ 2024-09-29 1658/week @ 2024-10-06 1946/week @ 2024-10-13 1935/week @ 2024-10-20 2214/week @ 2024-10-27 2023/week @ 2024-11-03 1560/week @ 2024-11-10 1379/week @ 2024-11-17

7,427 downloads per month
Used in 20 crates

GPL-3.0-or-later

160KB
3.5K SLoC

Hyprland-rs

Crates.io Crates.io Crates.io docs.rs Hyprland Discord

An unofficial rust wrapper for Hyprland's IPC

Help Wanted!

We need help with developing the next version of hyprland-rs 0.4, if you know how to do the things in https://github.com/hyprland-community/hyprland-rs/milestone/4 contributions in those areas would be greatly appreciated!

Disclaimer

If something doesn't work, doesn't matter what, make sure you are on the latest version (or 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!

hyprland = "0.4.0-beta.1"

Reading the docs

Hyprland-rs has a ton of types (and some really long ones)! Its important you know how the ones you will be using work! The docs can be found at docs.rs/hyprland

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):

hyprland = { git = "https://github.com/hyprland-community/hyprland-rs", branch = "master" }

What this crate provides

This crate provides 6 modules (+1 for shared things)

  • data for getting information on the compositor
  • event_listener which provides the EventListener struct for listening for events
  • dispatch for calling dispatchers
  • keyword for dealing with config option (aka keywords)
  • config::binds for changing binds (in future config might have config generation)
  • ctl for calling hyprctl commands

Example Usage

Check the examples in the examples directory

Dependencies

~5–16MB
~211K SLoC