Advertisement
Guest User

Remapping keys in xterm

a guest
Nov 28th, 2010
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.80 KB | None | 0 0
  1. ! Required for emacs title
  2. XTerm*allowWindowOps: true
  3.  
  4. XTerm*loginShell: true
  5. XTerm*termName: xterm-256color
  6. XTerm*saveLines: 5120
  7. XTerm*keepSelection: true
  8. XTerm*bellIsUrgent: true
  9. XTerm*eightBitInput: true
  10. XTerm*metaSendsEscape: false
  11. XTerm*eightBitOutput: true
  12. XTerm*locale: false
  13. XTerm*utf8: 0
  14. XTerm*wideChars: false
  15. XTerm*font: *-misc-fixed-medium-r-normal-*-13-*-*-*-*-80-iso8859-1
  16. XTerm*boldFont: *-misc-fixed-bold-r-normal-*-13-*-*-*-*-80-iso8859-1
  17. XTerm*font1: *-misc-fixed-medium-r-normal-*-15-*-*-*-*-90-iso8859-1
  18. XTerm*boldMode: true
  19. XTerm*geometry: 80x25
  20. XTerm*cursorOffTime: 500
  21. XTerm*cursorOnTime: 500
  22. XTerm*scrollBar: false
  23. XTerm*internalBorder: 2
  24.  
  25. ! I use xclip to copy from primary selection to clipboard, so let xterm only alter
  26. ! the primary selection. This way the clipboard content doesn't get lost when the
  27. ! selection is lost.
  28. XTerm*vt100*translations: #replace\n\
  29. <Btn1Down>: select-start()\n\
  30. <Btn1Motion>: select-extend()\n\
  31. <Btn1Up>: select-end(PRIMARY) \n\
  32. Shift <Btn2Down>: insert-selection(CLIPBOARD) \n\
  33. <Btn2Down>: ignore()\n\
  34. <Btn2Up>: ignore()\n\
  35. <Btn3Down>: start-extend()\n\
  36. <Btn3Up>: ignore()\n\
  37. <Btn4Down>: scroll-back(1,halfpage)\n\
  38. <Btn5Down>: scroll-forw(1,halfpage)\n\
  39. \
  40. :!Mod2 Shift <Key> Prior: scroll-back(1,halfpage)\n\
  41. :! Shift <Key> Prior: scroll-back(1,halfpage)\n\
  42. :!Mod2 Shift <Key> Next: scroll-forw(1,halfpage)\n\
  43. :! Shift <Key> Next: scroll-forw(1,halfpage)\n\
  44. \
  45. !Mod2 Ctrl <Key> 7: string(0x1a) string("z") string(0x15) string("bg") string(0x0d)\n\
  46. ! Ctrl <Key> 7: string(0x1a) string("z") string(0x15) string("bg") string(0x0d)\n\
  47. !Mod2 Ctrl <Key> 8: keymap(scroll)\n\
  48. ! Ctrl <Key> 8: keymap(scroll)\n\
  49. !Mod2 Ctrl <Key> 9: insert-selection(PRIMARY) \n\
  50. ! Ctrl <Key> 9: insert-selection(PRIMARY) \n\
  51. !Mod2 Ctrl <Key> 0: insert-selection(CLIPBOARD) \n\
  52. ! Ctrl <Key> 0: insert-selection(CLIPBOARD) \n\
  53. !Mod2 Ctrl <Key> minus: dabbrev-expand()\n\
  54. ! Ctrl <Key> minus: dabbrev-expand()\n\
  55. !Mod2 Meta <Key> F9: set-vt-font(d) \n\
  56. ! Meta <Key> F9: set-vt-font(d) \n\
  57. !Mod2 Meta <Key> F10: set-vt-font(1) \n\
  58. ! Meta <Key> F10: set-vt-font(1) \n\
  59. \
  60. Mod5 Shift <Key> O: string(0x16) string("Æ")\n\
  61. Mod5 Shift <Key> apostrophe: string(0x16) string("Ø")\n\
  62. Mod5 Shift <Key> braceleft: string(0x16) string("Å")\n\
  63. Mod5 <Key> O: string(0x16) string("æ")\n\
  64. Mod5 <Key> apostrophe: string(0x16) string("ø")\n\
  65. Mod5 <Key> braceleft: string(0x16) string("å")\n\
  66. \
  67. !:Mod2 Ctrl Shift <Key> Return: string(0x1b) string("[27;6;13~")\n\
  68. !: Ctrl Shift <Key> Return: string(0x1b) string("[27;6;13~")\n\
  69. !:Mod2 Meta Shift <Key> Return: string(0x1b) string("[27;13;13~")\n\
  70. !: Meta Shift <Key> Return: string(0x1b) string("[27;13;13~")\n\
  71. !:Mod2 Ctrl <Key> Return: string(0x1b) string("[27;5;13~")\n\
  72. !: Ctrl <Key> Return: string(0x1b) string("[27;5;13~")\n\
  73. !:Mod2 Shift <Key> Return: string(0x1b) string("[27;2;13~")\n\
  74. !: Shift <Key> Return: string(0x1b) string("[27;2;13~")\n\
  75. !:Mod2 <Key> Home: string(0x1b) string("[7~")\n\
  76. !: <Key> Home: string(0x1b) string("[7~")\n\
  77. !:Mod2 <Key> End: string(0x1b) string("[4~")\n\
  78. !: <Key> End: string(0x1b) string("[4~")\n\
  79. \
  80. !Mod2 Shift <Key> space: string(0x9c)\n\
  81. ! Shift <Key> space: string(0x9c)\n\
  82. !Mod2 Ctrl <Key> comma: string(0x9d)\n\
  83. ! Ctrl <Key> comma: string(0x9d)\n\
  84. !Mod2 Ctrl <Key> period: string(0x9e)\n\
  85. ! Ctrl <Key> period: string(0x9e)\n\
  86. \
  87. ~Meta <Key>: insert-seven-bit()\n\
  88. Meta <Key>: insert-eight-bit()
  89.  
  90. XTerm*vt100*scrollKeymap*translations: #override \
  91. <Key> j: scroll-forw(1,line)\n\
  92. <Key> k: scroll-back(1,line)\n\
  93. <Key> u: scroll-forw(1,halfpage)\n\
  94. <Key> o: scroll-back(1,halfpage)\n\
  95. <Key> Escape: keymap(None) string(" ")\n\
  96. <Key>: ignore()\n
  97.  
  98. XTerm*on2Clicks: word
  99. XTerm*on3Clicks: regex [a-zA-Z_]*
  100. XTerm*on4Clicks: regex [^ ]*
  101. XTerm*on5Clicks: line
  102.  
  103. ! ! "" # $ % & '' ( ) * + , - . /
  104. ! 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
  105. ! @ [ \ ] ^ _ ` { | } ~
  106. ! 64, 91, 92, 93, 94, 48, 96, 123, 124, 125, 126,
  107. XTerm*charClass: 33:48,35-38:48,43:48,45-47:48,58:48,61:48,63-64:48,126:48
  108.  
  109. ! 0=black 1=red 2=green 3=yellow 4=blue 5=magenta 6=cyan 7=white
  110. ! 8=black 9=red 10=green 11=yellow 12=blue 13=magenta 14=cyan 15=white
  111. XTerm*background: #182227
  112. XTerm*foreground: #b2b2b2
  113. XTerm*cursorColor: #808080
  114. XTerm*color0: #686868
  115. XTerm*color1: #ee5454
  116. XTerm*color2: #24ed24
  117. XTerm*color3: #ffff54
  118. XTerm*color4: #398af6
  119. XTerm*color5: #df54df
  120. XTerm*color6: #54ffff
  121. XTerm*color7: #ffffff
  122. XTerm*color8: #686868
  123. XTerm*color9: #ee5454
  124. XTerm*color10: #24ed24
  125. XTerm*color11: #ffff54
  126. XTerm*color12: #398af6
  127. XTerm*color13: #df54df
  128. XTerm*color14: #54ffff
  129. XTerm*color15: #ffffff
  130.  
  131. xterm-light*background: #ffffff
  132. xterm-light*foreground: #000000
  133. xterm-light*cursorColor: #404040
  134. xterm-light*color0: #343434
  135. xterm-light*color1: #ee2a2a
  136. xterm-light*color2: #02bc02
  137. xterm-light*color3: #debe0a
  138. xterm-light*color4: #1c45f6
  139. xterm-light*color5: #de2ade
  140. xterm-light*color6: #0acefe
  141. xterm-light*color7: #7f7f7f
  142. xterm-light*color8: #343434
  143. xterm-light*color9: #ee2a2a
  144. xterm-light*color10: #02bc02
  145. xterm-light*color11: #debe0a
  146. xterm-light*color12: #1c45f6
  147. xterm-light*color13: #de2ade
  148. xterm-light*color14: #0acefe
  149. xterm-light*color15: #7f7f7f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement