GitXplorerGitXplorer
c

clipnotify

public
232 stars
35 forks
4 issues

Commits

List of commits on branch master.
Unverified
25ba143c7da8ae0f196cb0db2797d30e6d04e15c

readme: Show example of loop mode

ccdown committed 2 years ago
Unverified
9c23a8b60dd8a9efa00f73273e03e9064a3d115e

readme: Mention new modes

ccdown committed 2 years ago
Unverified
c04a22ed5322c3aecf10697a024731ad25a772a8

Add loop mode

ccdown committed 2 years ago
Unverified
094dd7e20a06eba80c2e6f27dee775106e0eeca9

Add -s option to monitor specific selections

ccdown committed 2 years ago
Unverified
a9faca40b3929f22ad1e21c071c853af47b0b7bc

Honor DESTDIR and PREFIX in {un,}install

iiamleot committed 4 years ago
Unverified
55307a71cbc5d517ff311ea4adf1501717eb0fcf

added an install, uninstall and clean command.

tterminaldweller committed 4 years ago

README

The README file for this repository.

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 read; do
    [an event happened, do something with the selection]
done < <(clipnotify -l)

Or:

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

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 choose a particular selection with -s, and loop instead of exiting with -l. See clipmenu -h for more information.