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

rofi-plugin-sys

Raw FFI bindings to Rofi's C plugin interface

7 releases (4 breaking)

0.5.0 Jan 8, 2025
0.4.0 Feb 26, 2024
0.3.2 Oct 31, 2023
0.3.1 Jul 22, 2023
0.1.0 Apr 7, 2022

#8 in #rofi

Download history 22/week @ 2024-10-05 20/week @ 2024-10-12 21/week @ 2024-10-19 32/week @ 2024-10-26 33/week @ 2024-11-02 17/week @ 2024-11-09 14/week @ 2024-11-16 22/week @ 2024-11-23 29/week @ 2024-11-30 58/week @ 2024-12-07 41/week @ 2024-12-14 9/week @ 2024-12-21 4/week @ 2024-12-28 128/week @ 2025-01-04 58/week @ 2025-01-11 33/week @ 2025-01-18

224 downloads per month
Used in 2 crates

MIT license

43KB
605 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