Permalink
Browse files

read/write the XClipboard via xsel

* aptitude install xsel
* C-A < to read from XClipboard into the paste buffer
* C-A > to write the paste buffer into the XClipboard

C-A < could be extended with '(paste .)' to paste the
XClipboard directly into the current screen
  • Loading branch information...
1 parent 161abb3 commit 472003ef1cb5067002e42d52b0f35e18dded6b23 Andrew Grangaard committed Oct 18, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 screenrc
View
@@ -16,6 +16,10 @@ term "screen-256color"
attrcolor b ".I"
defbce "on" #clear with current background color rather than default background color
+# read and write screen clipboard to X clipboard.
+bind > eval writebuf "exec sh -c 'xsel -nbi </tmp/screen-exchange'"
+bind < eval "exec sh -c 'xsel -bo >/tmp/screen-exchange'" readbuf
+
####
#
# Hard Status

0 comments on commit 472003e

Please sign in to comment.