An open API service indexing awesome lists of open source software.

https://github.com/andrewbaxter/filterway

Wayland proxy that filters/modifies requests
https://github.com/andrewbaxter/filterway

Last synced: about 1 month ago
JSON representation

Wayland proxy that filters/modifies requests

Awesome Lists containing this project

README

          

# Filterway

is a Wayland socket proxy that can do minor changes to messages for any programs that use it's downstream socket. This allows you to do things like create a proxy wayland socket to mount in a container and write compositor decoration rules that are specific the container windows.

Current filters:

- Replace or prefix `app_id` - this can help writing compositor rules targetting programs running on a filterway instance
- Replace or prefix `title` - this may be helpful if nesting compositors, since compositors don't expect their title to be used and don't set useful titles.

# How to use it

Your main compositor will have created something like `/run/user/1000/wayland-0` where `1000` is your user ID.

1. Build `filterway` with `cargo build`.

Note, socket ancillary data (required by Wayland protocol) requires unstable rust currently. If you use `rustup` to manage rust it should read the `rust-toolchain.toml` file and compile accordingly.

2. Run `filterway --upstream /run/user/1000/wayland-0 --downstream /run/user/1000/wayland-filtered --app-id org.example.testid`

Run `filterway --help` for details.

3. Run Wayland applications or another compositor with `WAYLAND_DISPLAY=wayland-filtered`