Skip to content

Instantly share code, notes, and snippets.

@Greenscreener
Created January 5, 2020 19:40
Show Gist options
  • Save Greenscreener/a3dac67a4bc7cad12dfe026072c3de36 to your computer and use it in GitHub Desktop.
Save Greenscreener/a3dac67a4bc7cad12dfe026072c3de36 to your computer and use it in GitHub Desktop.
# Each time you put something into your clipboard, it gets appended to a file
wat2=$(xclip -o); while true; do wat=$(xclip -o); if [ "$wat" != "$wat2" ]; then echo $wat >> wat.txt; echo $wat; fi; wat2=$(xclip -o); sleep 0.2; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment