]> oss.titaniummirror.com Git - smckown/dotfiles.git/commitdiff
Xresources: support CLIPBOARD paste
authorR. Steve McKown <rsmckown@gmail.com>
Fri, 30 Oct 2015 20:36:27 +0000 (14:36 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Fri, 30 Oct 2015 20:36:27 +0000 (14:36 -0600)
Middle mouse up event pastes from the PRIMARY buffer.  Define Shift plus
middle mouse up event to paste from the CLIPBOARD.  PRIMARY is the most
recently highlighted text, where CLIPBOARD is generally populated with a
cut or copy command from a graphical application.

Xresources

index de3a1cd6c73cbcbb14e1ee78afd7b1c769f708eb..7672660eb580c7323f277844247994f3985e13ae 100644 (file)
@@ -93,6 +93,10 @@ xterm*antialias              : true
 !See http://www.leonerd.org.uk/hacks/hints/xterm-8bit.html
 !for settings to deal with escape sequences, etc.
 
+! Middle button pastes from PRIMARY (default), shift-middle pastes from CLIPBOARD
+xterm*vt100.translations: #override \n\
+    Shift <Btn2Up>: insert-selection(CLIPBOARD)
+
 !Xterm default colors
 !xterm*foreground: black
 !xterm*background: white