I'm aware of
xclip, ( also discussed in: https://stackoverflow.com/questions/749544/pipe-to-from-the-clipboard ), and use them often.
However, now I would like to have the
primary clipboard dumped to stdout, but in "follow mode". Currently, if I try this:
$ xclip -o Currently, if I try this: $ xsel -o Currently, if I try this: $
... the commands exit immediately.
What I would like instead, is a behavior similar to
tail -f /var/log/syslog - that is, "follow mode":
tail blocks the terminal, and whenever a new line shows in the file, it dumps it to standard output.
I'd like something similar, but for whenever I make a new copy (i.e., press Ctrl-C, or Ctrl-Shift-C in terminal) - that is, whenever I change the
primary clipboard contents.
Is there a command that will help me do that in