about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Down <chris@chrisdown.name>2018-02-05 23:45:04 +0000
committerChris Down <chris@chrisdown.name>2018-02-05 23:45:04 +0000
commitfe54c842ca505ae4c8fc2c5cbc336cecbb8e7965 (patch)
treef6d4eb5276112fe8a6a023960e8cb55de533c7ad
parent493e4cd1f0cf831540454426d65b0509a8f32d75 (diff)
downloadclipbuzz-fe54c842ca505ae4c8fc2c5cbc336cecbb8e7965.tar.gz
Add README
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..2a45f5b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,19 @@
+clipnotify is a simple program that, using the
+[XFIXES](https://cgit.freedesktop.org/xorg/proto/fixesproto/plain/fixesproto.txt)
+extension to X11, waits until a new selection is available and then exits.
+
+It was primarily designed for [clipmenu](https://github.com/cdown/clipmenu), to
+avoid polling for new selections.
+
+Here's how it's intended to be used:
+
+    while true; do
+        clipnotify  # When clipnotify exists, a new selection event was detected.
+        [do something with the selection]
+    done
+
+clipnotify doesn't try to print anything about the contents of the selection,
+it just exists when it changes. This is intentional -- X11's selection API is
+verging on the insane, and there are plenty of others who have already lost
+their sanity to bring us xclip/xsel/etc. Use one of those tools to complement
+clipnotify.