Get / set X windows selection from shell


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. # print X selection:
  2. echo $(xcopy -r)
  3.  
  4. # set X selection:
  5. echo "new selection" | xcopy

URL: http://www.chiark.greenend.org.uk/~sgtatham/utils/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.