Crates.io | wayfire-rs |
lib.rs | wayfire-rs |
version | 0.2.2 |
source | src |
created_at | 2024-08-09 01:31:51.439537 |
updated_at | 2024-08-10 02:52:58.94406 |
description | A Rust library for interacting with Wayfire. |
homepage | https://github.com/killown/wayfire-rs |
repository | https://github.com/killown/wayfire-rs |
max_upload_size | |
id | 1330191 |
size | 41,351 |
wayfire-rs
is a Rust library for interacting with Wayfire, a Wayland compositor. This project provides functionalities to communicate with Wayfire using IPC, manage views, outputs, and configurations, and more.
To include wayfire-rs
in your Rust project, add it to your Cargo.toml
:
[dependencies]
wayfire-rs = "0.1.8"
Basic usage in wayfire-rs/examples folder and lots of examples in wayfire-rs/src/main.rs
list_views: Retrieves a list of views.
list_outputs: Retrieves a list of outputs.
list_wsets: Retrieves a list of workspace sets.
list_input_devices: Retrieves a list of input devices.
get_configuration: Retrieves Wayfire's configuration.
get_option_value: Retrieves the value of a specific configuration option.
get_output: Retrieves information about a specific output.
get_view: Retrieves information about a specific view.
get_focused_view: Retrieves information about the currently focused view.
get_focused_output: Retrieves information about the currently focused output.
If you want to contribute to the wayfire-rs project, follow these steps:
Fork the repository.
Create a new branch for your feature or bug fix.
Make your changes and test them.
Submit a pull request with a detailed description of your changes.
wayfire-rs is licensed under the MIT License.