~cnx/clipbuzz

Buzz on new X11 clipboard events
Translate from C to Zig
a9faca40 — Leonardo Taccari 10 months ago
Honor DESTDIR and PREFIX in {un,}install
55307a71 — bloodstalker 10 months ago
added an install, uninstall and clean command.

clone

read-only
https://git.sr.ht/~cnx/clipbuzz
read/write
git@git.sr.ht:~cnx/clipbuzz

You can also use your local clone with git send-email.

#clipbuzz

clipbuzz is a simple program that uses the X Fixes Extension to wait until a new clipboard or primary selection is available and exit. It was translated from clipnotify in C to Zig, and is intended for use within a clipboard manager like threa to avoid polling for selections.

#Installation

clipbuzz depends on Xlib and an implementation of Xfixes and uses Zig build tool:

zig build install --prefix $PREFIX

where $PREFIX is usually $HOME/.local, /usr/local or /usr depending on your preference. The dependencies can usually be found in your operating system's repository, and if you are lucky, clipbuzz itself as well!

#Usage

while clipbuzz
do # something with xclip or xsel
done

#Copying

This is free and unencumbered software released into the public domain.