dotfiles

personal configuration files and scripts
git clone https://tongong.net/git/dotfiles.git
Log | Files | Refs | README

README.md (775B)


      1 clipnotify is a simple program that, using the
      2 [XFIXES](https://cgit.freedesktop.org/xorg/proto/fixesproto/plain/fixesproto.txt)
      3 extension to X11, waits until a new selection is available and then exits.
      4 
      5 It was primarily designed for [clipmenu](https://github.com/cdown/clipmenu), to
      6 avoid polling for new selections.
      7 
      8 Here's how it's intended to be used:
      9 
     10     while clipnotify; do
     11         [an event happened, do something with the selection]
     12     done
     13 
     14 clipnotify doesn't try to print anything about the contents of the selection,
     15 it just exits when it changes. This is intentional -- X11's selection API is
     16 verging on the insane, and there are plenty of others who have already lost
     17 their sanity to bring us xclip/xsel/etc. Use one of those tools to complement
     18 clipnotify.