3 ms·
There is nothing to tail, because (FAFAIK) there are no clipboard events in Linux (well, in X). The best you can do is poll xclip every X ms, so you'd get: w
by tremon 5y ago
There is nothing to tail, because (FAFAIK) there are no clipboard events in Linux (well, in X). The best you can do is poll xclip every X ms, so you'd get:
while sleep .2 ; do xclip -o ; done | uniq | grep -E 'https?:'
but that is pretty wasteful of resources. Luckily processes are cheap on Linux :)
- forgotmypw17 5y agoThank you! I can't imagine myself clipping something more than once 5-10 seconds, so I can set the interval to that. I want to take this moment to remind you that the Web includes http, not just https, and ignoring it is a failure at accessibility and compatibility. For myself a week from now looking for this, here is the version which works for me: while true; do xclip -o | uniq | grep ^http > ~/url.txt ; sleep 5; done Thank you again, this will make my life much easier.