Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cdown/clipnotify
Notify on new X clipboard events
https://github.com/cdown/clipnotify
Last synced: about 2 months ago
JSON representation
Notify on new X clipboard events
- Host: GitHub
- URL: https://github.com/cdown/clipnotify
- Owner: cdown
- License: other
- Created: 2018-02-06T13:45:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-30T23:28:43.000Z (6 months ago)
- Last Synced: 2024-04-16T18:42:04.816Z (5 months ago)
- Language: C
- Size: 6.84 KB
- Stars: 216
- Watchers: 13
- Forks: 33
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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 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]
doneclipnotify 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.