#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

#7 in #rofi

Download history 12/week @ 2024-04-08 19/week @ 2024-04-15 22/week @ 2024-04-22 7/week @ 2024-04-29 17/week @ 2024-05-06 38/week @ 2024-05-13 20/week @ 2024-05-20 30/week @ 2024-05-27 22/week @ 2024-06-03 24/week @ 2024-06-10 29/week @ 2024-06-17 34/week @ 2024-06-24 25/week @ 2024-07-01 12/week @ 2024-07-08 24/week @ 2024-07-15 24/week @ 2024-07-22

88 downloads per month
Used in rofi-mode

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