#plugin #rofi #bindings #interface #cfg #low-level #rofi-next

rofi-plugin-sys

Raw FFI bindings to Rofi's C plugin interface

6 releases (3 breaking)

0.4.0 Feb 26, 2024
0.3.2 Oct 31, 2023
0.3.1 Jul 22, 2023
0.3.0 May 5, 2023
0.1.0 Apr 7, 2022

#9 in #rofi

Download history 21/week @ 2024-07-21 30/week @ 2024-07-28 22/week @ 2024-08-04 27/week @ 2024-08-11 19/week @ 2024-08-18 18/week @ 2024-08-25 25/week @ 2024-09-01 28/week @ 2024-09-08 25/week @ 2024-09-15 48/week @ 2024-09-22 45/week @ 2024-09-29 22/week @ 2024-10-06 20/week @ 2024-10-13 20/week @ 2024-10-20 34/week @ 2024-10-27 33/week @ 2024-11-03

110 downloads per month
Used in 2 crates

MIT license

45KB
629 lines

rofi-plugin-sys

This crate provides raw FFI bindings to Rofi's C plugin interface, manually written from the headers in /usr/include/rofi.

See the examples folder for examples on how to use this crate.

These bindings are raw, unsafe and very low-level so if you just want to write a Rofi plugin you'll probably want an easier-to-use library instead, such as rofi-mode.

Set RUSTFLAGS="--cfg rofi_next" when building to change the API to use unreleased Rofi features (as of 2023-10-31). Items only available when this is turned on will be marked “Semver-exempt and only available with cfg(rofi_next).” in the documentation.

License: MIT


lib.rs:

This crate provides raw FFI bindings to Rofi's C plugin interface, manually written from the headers in /usr/include/rofi.

See the examples folder for examples on how to use this crate.

These bindings are raw, unsafe and very low-level so if you just want to write a Rofi plugin you'll probably want an easier-to-use library instead, such as rofi-mode.

Set RUSTFLAGS="--cfg rofi_next" when building to change the API to use unreleased Rofi features (as of 2023-10-31). Items only available when this is turned on will be marked “Semver-exempt and only available with cfg(rofi_next).” in the documentation.

Dependencies

~0.5–0.9MB
~19K SLoC