Skip to content

Instantly share code, notes, and snippets.

@ssokolow
Created May 1, 2011 15:54
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ssokolow/950604 to your computer and use it in GitHub Desktop.
Save ssokolow/950604 to your computer and use it in GitHub Desktop.
.Xresources settings for more modern XTerm keybindings
! {{{ Quick Reference
!
! Scrolling:
! Scroll Wheel
! Shift-PgUp/PgDn
!
! Copy/Paste:
! Mouse-Select : Copy to PRIMARY
! Shift + Mouse-Select: Copy to CLIPBOARD
!
! Middle-Click : Paste from PRIMARY
! Shift + Middle-Click: Paste from CLIPBOARD
!
! Ctrl+Shift+V : Paste from CLIPBOARD
! Ctrl+Alt+Shift+V : Paste from PRIMARY
!
! }}}
! More Konsole/Yakuake-like keybindings:
*VT100.Translations: #override \
Shift <Key>Up: scroll-back(1) \n\
Shift <Key>Down: scroll-forw(1) \n\
~Meta Shift Ctrl <Key>V: insert-selection(CLIPBOARD) \n\
Meta Shift Ctrl <Key>V: insert-selection(PRIMARY) \n\
~Shift <Btn1Up>: select-end(PRIMARY, CUT_BUFFER0) \n\
Shift <Btn1Up>: select-end(CLIPBOARD, CUT_BUFFER1) \n\
~Shift ~Ctrl ~Meta <Btn2Up>:insert-selection(PRIMARY, CUT_BUFFER0) \n\
Shift ~Ctrl ~Meta <Btn2Up>:insert-selection(CLIPBOARD, CUT_BUFFER1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment