feat: ralph, waybar, formatted
This commit is contained in:
parent
774daebdff
commit
1eb01464e1
38 changed files with 1913 additions and 609 deletions
38
modules/features/waybar/config/cffi_example/README.md
Normal file
38
modules/features/waybar/config/cffi_example/README.md
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# C FFI module
|
||||
|
||||
A C FFI module is a dynamic library that exposes standard C functions and
|
||||
constants, that Waybar can load and execute to create custom advanced widgets.
|
||||
|
||||
Most language can implement the required functions and constants (C, C++, Rust,
|
||||
Go, Python, ...), meaning you can develop custom modules using your language of
|
||||
choice, as long as there's GTK bindings.
|
||||
|
||||
Symbols to implement are documented in the
|
||||
[waybar_cffi_module.h](waybar_cffi_module.h) file.
|
||||
|
||||
# Usage
|
||||
|
||||
## Building this module
|
||||
|
||||
```bash
|
||||
meson setup build
|
||||
meson compile -C build
|
||||
```
|
||||
|
||||
## Load the module
|
||||
|
||||
Edit your waybar config:
|
||||
```json
|
||||
{
|
||||
// ...
|
||||
"modules-center": [
|
||||
// ...
|
||||
"cffi/c_example"
|
||||
],
|
||||
// ...
|
||||
"cffi/c_example": {
|
||||
// Path to the compiled dynamic library file
|
||||
"module_path": "resources/custom_modules/cffi_example/build/wb_cffi_example.so"
|
||||
}
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue