Advertisement
Guest User

.xresources

a guest
May 11th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Fortran 12.30 KB | None | 0 0
  1. !Colour Settings
  2. xterm.vt100.reverseVideo: false
  3. xterm.vt100.background: Black
  4. xterm.vt100.foreground: White
  5. xterm.vt100.colorBD: Yellow
  6. xterm.vt100.colorUL: Green
  7. !xterm.vt100.veryBoldColors:4
  8. !xterm.vt100.colorRVMode:True
  9. !xterm.vt100.colorRV:XtDefaultForeground
  10.  
  11. xterm.vt100.cursorColor: firebrick
  12. !hotpink
  13. xterm.vt100.cursorBlink: true
  14.  
  15. xterm.vt100.highlightColorMode: true
  16. xterm.vt100.highlightReverse: true
  17. xterm.vt100.highlightColor: steelblue
  18. xterm.vt100.highlightTextColor: floralwhite
  19. !xterm.vt100.highlightSelection: False
  20. !xterm.vt100.reverseVideo:False
  21.  
  22. !Mouse Pointer ( Does not seem to work!! )
  23. !xterm.vt100.pointerColor:Navy
  24. !xterm.vt100.pointerColorBackground:Green
  25. !xterm.vt100.pointerMode:0
  26. !xterm.vt100.pointerShape:bogosity
  27.  
  28. !Allow XTerm to report the TERM variable correctly.
  29. xterm.termName: xterm-256color
  30. !xterm.termName: linux
  31.  
  32. ! ALT and META keys
  33. ! Note that the Alt key is not necessarily the same as the Meta modifier.
  34. ! The xmodmap utility lists your key modifiers. X defines modifiers
  35. ! and XTerm inspects the same information.
  36. !
  37. ! Treat Alt-key as if it were the Meta-key
  38. ! (Default: False)
  39. !xterm.vt100.altIsNotMeta:False
  40. ! From Arch wiki on XTerm
  41. !
  42. ! Alt characters (a character combined with the modifier associated with
  43. ! left/right Alt-keys) are converted into a two-character sequence with
  44. ! the character itself preceded by ESC (Default: False)
  45. ! ( Only if altIsNotMeta is set )
  46. !xterm.vt100.altSendsEscape:False
  47. !
  48. ! Make 'Meta' key behave as on other terminal emulators
  49. ! ( Only if altIsNotMeta is set, i.e. is set to false (Default) )
  50. !xterm.vt100.metaSendsEscape:True
  51.  
  52.  
  53. ! NUMLOCK Key
  54. ! Check if it is a Modifier with xmodmap
  55. xterm.vt100.numLock: true
  56. ! Give preference to Mod Keys
  57. ! Override the numLock resource, telling xterm
  58. ! to use the Alt and Meta modifiers to construct
  59. ! parameters for function key
  60. !xterm.vt100.alwaysUseMods:False
  61.  
  62. ! Fix the Backspace key
  63. ! On Arch Linux, xterm sends ^H key when backspace is pressed.
  64. ! This breaks the Ctrl+H key combination on Emacs
  65. !xterm.vt100.backarrowKey: false
  66. !xterm.vt100.ttyModes: erase ^?
  67. ! from Arch Wiki on XTerm
  68.  
  69. !Bell
  70. xterm.vt100.visualBell: true
  71. xterm.vt100.visualBellLine: true
  72. !xterm.vt100.marginbell:False
  73.  
  74. !Saved lines
  75. xterm.vt100.saveLines: 9000000
  76.  
  77. !Geometry
  78. xterm.vt100.geometry: 86x40
  79. ! Try 85x because there is 5 columns reserved
  80. ! for line numbers set in vim man pager config
  81.  
  82. !Scrollbar
  83. xterm.vt100.scrollBar: true
  84. xterm.vt100.scrollbar.width: 14
  85. xterm.vt100.scrollLines: 7
  86. xterm.vt100.scrollTtyOutput: false
  87. ! Faster scroll for XTerm (multiple lines per time)
  88. xterm.vt100.jumpScroll: true
  89. ! Modifies the effect of jump scroll (jumpScroll) by suppressing
  90. !screen refreshes for the special case when output to the screen
  91. !has completely shifted the contents off-screen.
  92. xterm.vt100.fastScroll: true
  93. !OBS: Set Keybinding: Shift+PgUp/PgDown
  94. ! Multi Scroll indicates XTerm may scroll asynchronously,
  95. ! meaning that the screen does not have to be kept completely up to date
  96. ! while scrolling. This allows XTerm to run faster when network latencies
  97. ! are very high and is typically useful when running across a very large
  98. ! internet or many gateways.
  99. xterm.vt100.multiScroll: true
  100. ! Control sequences that set/query the Scroll Lock key should be allowed,
  101. ! as well as whether the Scroll Lock key responds to user's keypress.
  102. xterm.vt100.allowScrollLock: true
  103.  
  104. ! Whether to display a box outlining places where a character
  105. ! has been used that the font does not represent.
  106. xterm.vt100.showMissingGlyphs: true
  107.  
  108. ! About XTerm Wrapping
  109. ! Because of the wrapping behavior, you would occasionally have to
  110. ! repaint the screen when using a text editor with the “ansi” description
  111. ! Check custom keybindings!
  112.  
  113. !Border
  114. xterm.vt100.colorInnerBorder: true
  115. xterm.vt100.borderColor: #000030
  116. xterm.vt100.internalBorder: 4
  117.  
  118. ! Enable/Disable ToolBar from appearing
  119. ! (Does not work, even with keybinding set!)
  120. ! ( Always set to True)
  121. ! xterm.vt100.toolBar: true
  122. ! Also should probably add an entry to tranlations:
  123. !Ctrl <key>8: set-toolbar(toggle)
  124.  
  125. !Adjust line spacing
  126. ! ( May be a hack for certain fonts, too)
  127. !xterm.vt100.scaleHeight: 1.01
  128.  
  129. !Fixed XTerm Title
  130. !Bash can also modify this setting
  131. !xterm.title
  132.  
  133. ! Alternate Screen
  134. ! Check toggle in Keybindings
  135. ! Default is to Ctrl-middle-click and toggle Alternate Screen
  136. ! Bash Defaults:
  137. !   Ctrl+S stops output to screen but still receives inputs;
  138. !   Ctrl-Z suspend process and put in background
  139. !   Ctrl-Q resumes output to screen ( restarts flow-control)
  140.  
  141. !FONTS
  142. ! Bitmap (.font) sets boldFont resource and is the deafult font used
  143. !
  144. xterm*font: -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
  145. !! Good: -misc-hack-medium-r-normal--4-0-0-0-m-0-iso10646-1
  146. !! Plus: xterm*font: 7x14
  147. ! -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
  148. ! -misc-inconsolata-medium-r-normal--14-0-0-0-m-0-iso10646-1
  149. !-misc-ubuntu mono-medium-r-normal--14-0-0-0-m-0-iso10646-1
  150. ! -misc-dejavu sans mono-medium-r-normal--14-0-0-0-m-0-iso10646-1
  151. !xterm*font:     *-fixed-*-*-18-*-*
  152. !xterm*font:     7x14
  153. !xlsfonts to check which bitmaps fonts are available
  154. !https://sites.google.com/site/ongytenes/code/xterm-configuration-tips
  155.  
  156. ! Bitmap Font Sizes
  157. !Unreadable
  158. !xterm*font1: -xos4-terminus-medium-r-normal--0-0-72-72-c-0-iso10646-1
  159. !Tiny
  160. xterm*font2: -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso10646-1
  161. !Small
  162. xterm*font3: -xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso10646-1
  163. !Medium
  164. xterm*font4: -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso10646-1
  165. !Large
  166. xterm*font5: -xos4-terminus-bold-r-normal--22-220-72-72-c-110-iso10646-1
  167. !Huge
  168. xterm*font6: 9x15bold
  169.  
  170. ! Use TTF Fonts instead
  171. !XTerm*faceName: TerminessTTF Nerd Font Mono
  172. !Noto Sans Mono Condensed
  173. !!  Hack Nerd Font Mono
  174. !!GoMono Nerd Font Mono
  175. !Roboto Condensed
  176. ! DejaVuSansMono Nerd Font Mono
  177. !Cousine Nerd Font Mono
  178. ! BitstreamVeraSansMono Nerd Font Mono
  179. ! Inconsolata Nerd Font Mono
  180. !XTerm*faceSize: 12
  181.  
  182. ! Warning on loading Fonts errors
  183. ! 0=never; 1=only if font is at Xresources (Default); 2=always
  184. xterm.vt100.fontWarnings: 2
  185.  
  186. ! SELECTION
  187. !Selected text will use CLIPBOARD
  188. !Set to false uses PRIMARY by default
  189. !and SECONDARY with special keybings
  190. ! Programmes may also have a CUTBUFFER (eg. VIM)
  191. xterm.vt100.selectToClipboard: true
  192.  
  193. !Select whole URL when double-clicking
  194. xterm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
  195. !https://debian-administration.org/article/66/Customizing_your_xterm
  196.  
  197. !Triple-click select both filesystem paths and URL links
  198. !( Does not seem to work very well !)
  199. !xterm.vt100.on3Clicks: regex ([[:alpha:]]+://)?([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+
  200.  
  201.  
  202. !KEYBINDINGS
  203. ! If one keybindings is not well setup, none will work!
  204. xterm.vt100.translations: #override \n\
  205.     Shift Ctrl <Key>c:copy-selection(CLIPBOARD) \n\
  206.     Shift Ctrl <Key>v:insert-selection(CLIPBOARD) \n\
  207.     Meta <Key>v:insert-selection(PRIMARY) \n\
  208.     Meta <Key>Insert:insert-selection(PRIMARY) \n\
  209.     Meta <Key>Prior:scroll-back(13,line) \n\
  210.     Meta <Key>Next:scroll-forw(13,line) \n\
  211.     Meta <Key>Up:scroll-back(2,line) \n\
  212.     Meta <Key>Down:scroll-forw(2,line) \n\
  213.     Meta <Key>Home:scroll-to(begin) \n\
  214.     Meta <Key>End:scroll-to(end) \n\
  215.     Meta <Key>minus:smaller-vt-font() \n\
  216.     Meta <Key>plus:larger-vt-font() \n\
  217.     Meta <Key>a:set-altscreen(toggle)
  218. !   Shift ~Ctrl ~Meta <Btn2Up>:insert-selection(CLIPBOARD) \n\
  219. !   ~Shift ~Ctrl ~Meta <Btn2Up>:insert-selection(PRIMARY) \n\
  220. !
  221. ! You 'could' set these next two bindings but Vim uses PgUp/Dn and doe snot work if you set these:
  222. !   <Key>Prior:scroll-back(13,line) \n\
  223. !   <Key>Next:scroll-forw(13,line) \n\
  224. !   Good ref: https://github.com/charnley/dotfiles.x/blob/master/Xresources
  225. !   OBS: Shift-Insert pastes from XTerm set default buffer
  226. !   Ctrl <Key>|:quit()
  227. !   Meta <Key>c:copy-selection(CLIPBOARD) \n\
  228. !   Meta <Key>v:insert-selection(CLIPBOARD) \n\
  229. !       OBS: Pg is Prior and PgDown is Next
  230. !   OBS: ~Alt means "Alt is not pressed".
  231. !
  232. !       Ref: https://askubuntu.com/questions/169054/make-terminal-use-pageup-pagedown-instead-of-shift-pageup-shift-pagedown
  233. ! Notes:Default behaviour of Home/End keys in Bash and Vim
  234. !   is to go to beginning/end of line
  235. !   Consider changing it to more usual behaviour of
  236. !   home/end keys after youlearn more in Vim
  237.  
  238. !   Default Key Bindings
  239. !       The default bindings in the VTxxx window use the SELECT token, which is
  240. !       set by the selectToClipboard resource.  These are for the vt100 widget:
  241. !
  242. !                     Shift <KeyPress> Prior:scroll-back(1,halfpage) \n\
  243. !                      Shift <KeyPress> Next:scroll-forw(1,halfpage) \n\
  244. !                    Shift <KeyPress> Select:select-cursor-start() \
  245. !                                            select-cursor-end(SELECT, CUT_BUFFER0) \n\
  246. !                    Shift <KeyPress> Insert:insert-selection(SELECT, CUT_BUFFER0) \n\
  247. !                            Alt <Key>Return:fullscreen() \n\
  248. !                   <KeyRelease> Scroll_Lock:scroll-lock() \n\
  249. !               Shift~Ctrl <KeyPress> KP_Add:larger-vt-font() \n\
  250. !               Shift Ctrl <KeyPress> KP_Add:smaller-vt-font() \n\
  251. !               Shift <KeyPress> KP_Subtract:smaller-vt-font() \n\
  252. !                           ~Meta <KeyPress>:insert-seven-bit() \n\
  253. !                            Meta <KeyPress>:insert-eight-bit() \n\
  254. !                           !Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
  255. !                      !Lock Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
  256. !            !Lock Ctrl @Num_Lock <Btn1Down>:popup-menu(mainMenu) \n\
  257. !                ! @Num_Lock Ctrl <Btn1Down>:popup-menu(mainMenu) \n\
  258. !                           ~Meta <Btn1Down>:select-start() \n\
  259. !                         ~Meta <Btn1Motion>:select-extend() \n\
  260. !                           !Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
  261. !                      !Lock Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
  262. !            !Lock Ctrl @Num_Lock <Btn2Down>:popup-menu(vtMenu) \n\
  263. !                ! @Num_Lock Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
  264. !                     ~Ctrl ~Meta <Btn2Down>:ignore() \n\
  265. !                            Meta <Btn2Down>:clear-saved-lines() \n\        
  266. !                       ~Ctrl ~Meta <Btn2Up>:insert-selection(SELECT, CUT_BUFFER0) \n\
  267. !                           !Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
  268. !                      !Lock Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
  269. !            !Lock Ctrl @Num_Lock <Btn3Down>:popup-menu(fontMenu) \n\
  270. !                ! @Num_Lock Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
  271. !                     ~Ctrl ~Meta <Btn3Down>:start-extend() \n\
  272. !                         ~Meta <Btn3Motion>:select-extend() \n\
  273. !                            Ctrl <Btn4Down>:scroll-back(1,halfpage,m) \n\
  274. !                       Lock Ctrl <Btn4Down>:scroll-back(1,halfpage,m) \n\
  275. !             Lock @Num_Lock Ctrl <Btn4Down>:scroll-back(1,halfpage,m) \n\
  276. !                  @Num_Lock Ctrl <Btn4Down>:scroll-back(1,halfpage,m) \n\
  277. !                                 <Btn4Down>:scroll-back(5,line,m)     \n\
  278. !                            Ctrl <Btn5Down>:scroll-forw(1,halfpage,m) \n\
  279. !                       Lock Ctrl <Btn5Down>:scroll-forw(1,halfpage,m) \n\
  280. !             Lock @Num_Lock Ctrl <Btn5Down>:scroll-forw(1,halfpage,m) \n\
  281. !                  @Num_Lock Ctrl <Btn5Down>:scroll-forw(1,halfpage,m) \n\
  282. !                                 <Btn5Down>:scroll-forw(5,line,m)     \n\
  283. !                                    <BtnUp>:select-end(SELECT, CUT_BUFFER0) \n\
  284. !                                  <BtnDown>:ignore()
  285. !
  286.  
  287. ! Nice one but disables
  288. ! line visual mode with mouse in VIM
  289. !Shift <Btn1Down>:scroll-to(end)
  290. !
  291. !Some Defaults
  292. !
  293. ! From Bash
  294. ! <Ctrl+J) Linefeed
  295. ! <Ctrl-H) Carriage Return
  296. !
  297. ! <F8> adds a tilda ( ~)
  298. !
  299. ! From Xterm Man
  300. !   <Btn5Down>: StartScroll(Forward) \n\
  301. !   <Btn1Down>: StartScroll(Forward) \n\
  302. !   <Btn2Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
  303. !   <Btn3Down>: StartScroll(Backward) \n\
  304. !   <Btn4Down>: StartScroll(Backward) \n\
  305. !   <Btn2Motion>: MoveThumb() NotifyThumb() \n\
  306. !   <BtnUp>:    NotifyScroll(Proportional) EndScroll()
  307.  
  308.  
  309. ! Ctrl <Key>[: smaller-vt-font() \n\
  310. ! Ctrl <Key>]: larger-vt-font() \n\
  311. !https://www.linuxquestions.org/questions/linux-software-2/xterm-tabs-and-scrolling-700001/
  312. !   https://askubuntu.com/questions/161652/how-to-change-the-default-font-size-of-xterm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement