File: pxclip

package info (click to toggle)
libclipboard-perl 0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 264 kB
  • ctags: 130
  • sloc: perl: 1,260; sh: 43; makefile: 10
file content (15 lines) | stat: -rwxr-xr-x 544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# Useful for exploring the way X selections work.
# For example, run watch -n1 pxclip in one xterm, then highlight something in
# another.  Now single-click in the xterm to remove the highlighting.  Now
# highlight something in Firefox.  Now highlight something in the xterm again.
# Now switch back to Firefox, and hit ^C. 
# Weird, huh?
for n in primary secondary clipboard buffer; do
    echo == $n ==
    xclip -o -selection $n
    echo
done
echo == Clipboard.pm default ==
perl -Ilib -MClipboard -e "print Clipboard->paste"
echo