~whynothugo/clipmon

37bd336f7fc5a914d2bd34b17f6f8a0af7b95385 — Hugo Osvaldo Barrera 7 months ago 3a5d94f
Add a note on the current architecture
1 files changed, 10 insertions(+), 0 deletions(-)

M README.md
M README.md => README.md +10 -0
@@ 17,6 17,16 @@ clipmon

To build use `cargo build`. You can also quickly run this with `cargo run`.

# Design

- We use the `wlr-data-control-unstable-v1` wayland protocol.
- As soon as an application copies data into a selection, we copy this data and
  claim the clipboard ourselves.
- Because only foreground applications can take a selection, it should not be
  possible for another application to try and read data before we do.
- When another application tries to paste a selection, we receive that
  request, and can show a notification before sending any data.

# Debugging

Use `WAYLAND_DEBUG=1` to see all wayland events -- that's usually most of