screenrc: add copy-to-xsel functionality
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 10 Nov 2010 19:05:54 +0000 (11:05 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Sun, 2 Jan 2011 20:36:02 +0000 (12:36 -0800)
.screenrc

index fd45e22..8a85fc7 100644 (file)
--- a/.screenrc
+++ b/.screenrc
@@ -5,6 +5,8 @@ hardstatus alwayslastline
 caption always "%{+u wb}%? %L=%-Lw%45>%{+b by}%n%f*%t%{-}%+Lw%-0<"
 # could also add: %?%F%{-b bc}%:%{-b bb}%?%C|%D|%M %d|%H%?%F
 
+bind b eval writebuf 'exec /bin/sh -c "xsel -i -b < /tmp/screen-exchange"' 'exec /bin/sh -c "killall xsel"'
+
 activity "%C -> %n%f %t activity!"
 bell "%C -> %n%f %t bell!~"