Skip to content

Instantly share code, notes, and snippets.

@akissu
Last active December 3, 2017 02:43
Show Gist options
  • Select an option

  • Save akissu/ba9c6a1c3852f005e852f397ae72c3f1 to your computer and use it in GitHub Desktop.

Select an option

Save akissu/ba9c6a1c3852f005e852f397ae72c3f1 to your computer and use it in GitHub Desktop.
Print out all clipboards using xclip
#!/bin/sh
watch -t -n 0.5 \
'echo "XA_PRIMARY:"; \
xclip -selection primary -o; \
echo "\n\nXA_SECONDARY:"; \
xclip -selection secondary -o; \
echo "\n\nXA_CLIPBOARD:"; \
xclip -selection clipboard -o'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment