Expand description
This module provides functions for getting information on the compositor
§Data module
This module provides functions for getting information on the compositor
§Usage
here is a example of every function in use! (blocking)
use hyprland::data::*;
use hyprland::prelude::*;
use hyprland::shared::HResult;
fn main() -> HResult<()> {
let monitors = Monitors::get()?.to_vec();
println!("{monitors:#?}");
let workspaces = Workspaces::get()?.to_vec();
println!("{workspaces:#?}");
let clients = Clients::get()?.to_vec();
println!("{clients:#?}");
let active_window = Client::get_active()?;
println!("{active_window:#?}");
let layers = Layers::get()?;
println!("{layers:#?}");
let devices = Devices::get()?;
println!("{devices:#?}");
let version = Version::get()?;
println!("{version:#?}");
let cursor_pos = CursorPosition::get()?;
println!("{cursor_pos:#?}");
Ok(())
}
Structs§
- A struct representing a animation
- Struct that holds animations and beziers
- A bezier curve
- A keybinding returned from the binds command
- This struct holds a vector of binds
- This struct holds information for a client/window
- This struct holds a vector of clients
- This struct holds information on the cursor position
- This struct holds all current devices
- A helper struct that provides the current fullscreen state
- This struct holds information about a keyboard device
- This struct holds information about a layer surface/client
- This struct holds all the layer surfaces for a display
- This struct holds a hashmap of all current displays, and their layer surfaces
- This struct holds information for a monitor
- This struct holds a vector of monitors
- This struct holds information about a mouse device
- This struct holds information about a tablet device
- This struct holds version information
- This struct holds information for a workspace
- This struct holds a basic identifier for a workspace often used in other structs
- This type provides a vector of workspaces
Enums§
- Animation styles
- Bezier identifier
- A enum to match what the tablet belongs to
- A enum that holds the types of tablets
- This enum provides the different monitor transforms