dot_Xresources 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. ! https://wiki.archlinux.org/index.php/Xterm
  2. !
  3. ! XTerm
  4. ! https://unix.stackexchange.com/questions/109509/how-to-search-xterm-console-history
  5. XTerm.vt100.printerCommand: /home/oleg/.guix-profile/bin/xterm -bg '#f5f5f5' -fg black +sb -e sh -c 'cat <&3 | less -Sr' 3<&0
  6. XTerm.vt100.translations: #override Ctrl ~Meta ~Shift <Key>slash: print-everything() \n\
  7. Ctrl Shift <KeyPress> C: copy-selection(CLIPBOARD) \n\
  8. Ctrl Shift <KeyPress> V: insert-selection(CLIPBOARD) \n\
  9. Ctrl Shift <KeyPress> Y: insert-selection(PRIMARY) \n\
  10. Ctrl <Btn4Down>: larger-vt-font() \n\
  11. Ctrl <Btn5Down>: smaller-vt-font() \n\
  12. Ctrl Shift <KeyPress> N: spawn-new-terminal()
  13. ! Select all XTerm buffer
  14. XTerm.vt100.on4Clicks: all
  15. XTerm.vt100.foreground: black
  16. XTerm.vt100.background: white
  17. XTerm*color0: #000000
  18. XTerm*color8: #686868
  19. ! red
  20. XTerm*color1: #B21818
  21. XTerm*color9: #FF5454
  22. ! green
  23. XTerm*color2: #66CD00
  24. XTerm*color10: #54FF54
  25. ! yellow
  26. XTerm*color3: #B26818
  27. XTerm*color11: #EEC900
  28. ! blue
  29. XTerm*color4: #4169e1
  30. XTerm*color12: #5454FF
  31. ! purple
  32. XTerm*color5: #B218B2
  33. XTerm*color13: #FF54FF
  34. ! cyan
  35. XTerm*color6: #18B2B2
  36. XTerm*color14: #54FFFF
  37. ! white
  38. XTerm*color7: #B2B2B2
  39. XTerm*color15: #FFFFFF
  40. XTerm.vt100.scrollBar: true
  41. XTerm.vt100.cursorBlink: false
  42. ! https://github.com/eudoxia0/dotfiles/blob/master/sextant/xresources.txt
  43. !
  44. ! Do not use internalBorder, because this could lead to corrupted fonts.
  45. !
  46. ! XTerm.vt100.internalBorder: 10
  47. *.rightScrollBar: true
  48. XTerm.vt100.locale: true
  49. XTerm.vt100.saveLines: 4096
  50. XTerm.vt100.faceName: xft:Monospace:size=12:antialias=true
  51. XTerm.vt100.faceNameDoublesize: xft:WenQuanYi Zen Hei Mono:style=Regular:size=12
  52. ! With japanese font supports.
  53. ! Origin <https://bbs.archlinux.org/viewtopic.php?pid=1205854#p1205854>.
  54. ! xterm*font: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
  55. ! xterm*wideFont: -misc-fixed-medium-r-normal-ja-18-120-100-100-c-180-iso10646-1
  56. ! *VT100.utf8Fonts.font4: -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
  57. ! *VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
  58. ! *VT100.utf8Fonts.font6: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1
  59. ! *VT100.utf8Fonts.font5: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
  60. ! *VT100.utf8Fonts.font3: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
  61. ! *VT100.utf8Fonts.font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
  62. XTerm.vt100.metaSendsEscape: true
  63. ! Fix <C-h> in Emacs
  64. XTerm.vt100.backarrowKey: false
  65. XTerm.ttyModes: erase ^?
  66. ! Clipboard instead primary
  67. ! XTerm.vt100.selectToClipboard: true
  68. ! Inspired by: https://www.gnu.org/software/emacs/manual/html_node/emacs/Fonts.html#Fonts
  69. ! Get code from: https://www.emacswiki.org/emacs/XftGnuEmacs
  70. Emacs.FontBackend: xft
  71. Emacs.font: Monospace-12
  72. Emacs.mode-line.attributeBox: nil
  73. ! VT Font Menu: Unreadable
  74. XTerm*faceSize1: 8
  75. ! VT font menu: Tiny
  76. XTerm*faceSize2: 10
  77. ! VT font menu: Medium
  78. XTerm*faceSize3: 12
  79. ! VT font menu: Large
  80. XTerm*faceSize4: 14
  81. ! VT font menu: Huge
  82. XTerm*faceSize5: 16
  83. ! Allow xterm to report the TERM variable correctly. Do not set the
  84. ! TERM variable from your ~/.bashrc or ~/.bash_profile or similar
  85. ! file. The terminal itself should report the correct TERM to the
  86. ! system so that the proper terminfo file will be used. Two usable
  87. ! terminfo names are xterm and xterm-256color
  88. XTerm.termName: xterm-256color
  89. ! https://snarfed.org/emacs_x_resources
  90. Emacs.menuBar: off
  91. Emacs.verticalScrollBars: off
  92. Emacs.toolBar: off
  93. ! (emacs) Table of Resources
  94. ! Emacs.cursorBlink: off
  95. ! Origins <http://invisible-island.net/xterm/manpage/xterm.html#h3-Custom-Key-Bindings>,
  96. ! <https://unix.stackexchange.com/a/277960>, XTERM(1).
  97. ! XTerm.vt100.translations: #override \n\
  98. ! Meta <KeyPress> /: dabbrev-expand()
  99. ! Origin <https://raw.githubusercontent.com/gotbletu/shownotes/master/xterm_xresources.md>.
  100. ! Disable fullscreen hotkey M-RET. Hotkey conflicts with Weechat,
  101. ! Midnight Commander, Emacs.
  102. XTerm*fullscreen: never
  103. ! * Triple click it to select a URL and <S-down-mouse-1> to open a URL.
  104. ! XTerm.vt100.translations: #override Shift <Btn1Up>: exec-formatted("xdg-open '%t'", PRIMARY)
  105. ! XTerm*on3Clicks: regex ([[:alpha:]]+://)?([[:alnum:]
  106. ! Origin <https://scarygliders.net/2011/12/01/customize-xterm-the-original-and-best-terminal/>.
  107. ! Double-click to select URLs.
  108. !
  109. ! Defining What Makes Up a Word for Selection Purposes
  110. ! <https://docstore.mik.ua/orelly/unix3/upt/ch05_14.htm>
  111. XTerm*charClass: 33:48,36-38:48,40-47:48,58-59:48,61:48,63-64:48,95:48,126:48
  112. ! Origin <https://lists.nongnu.org/archive/html/stumpwm-devel/2007-07/msg00022.html>.
  113. XTerm*allowSendEvents: True
  114. ! Color output in console
  115. ! Origin <https://wiki.archlinux.org/index.php/Color_output_in_console#man>
  116. ! *VT100.colorBDMode: true
  117. ! *VT100.colorBD: red
  118. ! *VT100.colorULMode: true
  119. ! *VT100.colorUL: cyan
  120. ! *VT100.veryBoldColors: 6
  121. xmenu.background: black
  122. xmenu.foreground: white
  123. xmenu.border: #0a420a
  124. xmenu.selbackground: #0a420a