about summary refs log tree commit diff

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.