#plugin-interface #rofi #plugin

rofi-plugin-sys

Raw FFI bindings to Rofi's C plugin interface

8 releases (5 breaking)

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

#826 in Images

Download history 54/week @ 2026-01-05 46/week @ 2026-01-12 47/week @ 2026-01-19 34/week @ 2026-01-26 53/week @ 2026-02-02 44/week @ 2026-02-09 47/week @ 2026-02-16 47/week @ 2026-02-23 38/week @ 2026-03-02 38/week @ 2026-03-09 38/week @ 2026-03-16 44/week @ 2026-03-23 33/week @ 2026-03-30 46/week @ 2026-04-06 48/week @ 2026-04-13 22/week @ 2026-04-20

158 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 2025-01-08). 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

Dependencies

~0.5–0.9MB
~20K SLoC