Skip to content
Notify on new X clipboard events
C Makefile
Branch: master
Clone or download
cdown Revert "Add MAYBE_PLEDGE for OpenBSD"
See discussion on cdown/clipmenu#92.

This reverts commit eb15644.
Latest commit 22f7cb0 Nov 3, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Add public domain dedication Feb 8, 2018
Makefile Add BSD include/libdirs for X11 Nov 1, 2018
clipnotify.c Revert "Add MAYBE_PLEDGE for OpenBSD" Nov 3, 2018

clipnotify is a simple program that, using the XFIXES extension to X11, waits until a new selection is available and then exits.

It was primarily designed for clipmenu, to avoid polling for new selections.

Here's how it's intended to be used:

while clipnotify; do
    [an event happened, do something with the selection]

clipnotify doesn't try to print anything about the contents of the selection, it just exits 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.

You can’t perform that action at this time.