-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.Xresources
245 lines (206 loc) · 7.32 KB
/
.Xresources
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
! Allow regular colors, italics and underline
XTerm*underLine: true
XTerm*VT100.colorMode: True
XTerm*VT100.colorBDMode: false
XTerm*VT100.colorITMode: false
XTerm*colorULMode: off
XTerm*italicULMode: false
! Sixels support with a matching palette
XTerm*decTerminalID: 340
XTerm*numColorRegisters: 256
! Matching terminfo for all that
XTerm*termName: xterm-new
! Dont toggle the 8th bit
XTerm.vt100.metaSendsEscape: true
! Dont send Ctrl-H for Backspace
XTerm.vt100.backarrowKey: false
XTerm.ttyModes: erase ^?
! Allow escape codes that default to no on debian
XTerm*allowFontOps: yes
XTerm*allowTcapOps: yes
XTerm*allowWindowOps: yes
XTerm*dynamicColors: True
! No border
XTerm*borderWidth: 0
XTerm*VT100.internalBorder: 0
! Geometry adapted to my 4k screen
XTerm.VT100.geometry: 88x23
XTerm*fullscreen: true
! Cursor with no blink
XTerm*cursorBlink: False
! Scrollbar
XTerm*rightScrollBar: True
XTerm*saveLines: 4096
! Dont sync
XTerm*fastScroll: True
! Use other fast scroll hints
XTerm*jumpScroll: True
XTerm*multiScroll: True
! Scroll on key input, not on char output
XTerm*scrollkey: True
XTerm*scrollTtyOutput: false
! Locale settings
!XTerm.vt100.locale: false
XTerm.vt100.utf8: true
XTerm.VT100.utf8Title: true
!XTerm.vt100.wideChars: true
XTerm*menuLocale: "C"
! No sound, visualbell only, and cause focus
XTerm*visualBell: true
XTerm*popOnBell: true
XTerm*bellIsUrgent: true
! Minimal visualbell
XTerm*visualBellLine: true
XTerm*visualBellDelay: 20
! Selection
XTerm*highlightSelection: true
! Select URL with a custom regex
!XTerm*on2Clicks: regex [^ ''""()<>$+]*
! Extend selection to words
!XTerm*trimSelection: true
! Dont disallow HT (TAB) in paste; i.e. do not convert to space character
XTerm*VT100.DisallowedPasteControls: BS,DEL,ESC
! Double-click to select whole URLs
XTerm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
! bad idea to select into the clipboard for https://shallowsky.com/blog/linux/x-selection-keys.html
XTerm*selectToClipboard: false
! by default, use primary to avoid overwriting what everybody uses, iff ctrl-c send to clipboard
XTerm*VT100*translations: #override \n\
<BtnUp>:select-end(SELECT, CUT_BUFFER0, PRIMARY) \n\
Ctrl <Key> C: copy-selection(CLIPBOARD, PRIMARY) \n\
Ctrl <Key> V: insert-selection(CLIPBOARD) \n\
Shift Ctrl <Key> V: insert-selection(PRIMARY) \n\
Shift <Key> Insert: insert-selection(CUT_BUFFER0,PRIMARY,CLIPBOARD) \n\
Shift Ctrl <Key> Insert: insert-formatted("\033[202~%S~%s", CUT_BUFFER0,PRIMARY,CLIPBOARD) \n\
Ctrl <Key> +: larger-vt-font() \n\
Ctrl <Key> -: smaller-vt-font() \n\
Shift Ctrl <Key>B: set-scrollbar(toggle) \n\
Shift Ctrl <Key>S: set-scroll-on-key(toggle) \n\
Shift Ctrl <Key>R: hard-reset() \n\
Shift Ctrl <Key>M: maximize() \n\
Shift Ctrl <Key>R: restore() \n\
Ctrl Shift <Key>O: print(noAttrs, noNewLine) \n\
Ctrl Shift <Key>H: set-altscreen(toggle) \n\
Shift <KeyPress> Home : scroll-to(begin) \n\
Shift <KeyPress> End : scroll-to(end) \n\
Meta <KeyPress> Prior: scroll-back(1,halfpage) \n\
Meta <KeyPress> Next : scroll-forw(1,halfpage) \n\
Meta <KeyPress> Home : scroll-to(begin) \n\
Meta <KeyPress> End : scroll-to(end) \n\
! WONTFIX: ctrl-pageup/down are used by Tabbed
! instead use alt-pageup/down to scroll, completed by matching home/end
! FIXME: upon start, would need to acquire the clipboard content
! Ctrl <Key> V: insert-selection(PRIMARY) \n\
! Shift Ctrl <Key> V: insert-selection(CLIPBOARD) \n\
! Shift <Key> Insert: insert-selection(CUT_BUFFER0,PRIMARY,CLIPBOARD) \n\
! Shift Ctrl <Key> Insert: insert-formatted("\033[202~%S~%s", CUT_BUFFER0,PRIMARY,CLIPBOARD) \n\
! FIXME: finding in the scroll buffer is not working yet
! Shift Ctrl <KeyPress> F:dabbrev-expand() \n\
! Meta <KeyPress> /:dabbrev-expand()
! Extract url with ctrl-shift-o
! XTerm.vt100.printerCommand: xterm-open-url.sh
! Most people think selecting only into the clipboard is a bad idea
! cf https://shallowsky.com/blog/linux/x-selection-keys.html
! But if you disagree, use:
!XTerm*selectToClipboard: true
!*VT100*translations: #override \n\
! <BtnUp>:select-end(SELECT, CUT_BUFFER0, CLIPBOARD) \n\
! Ctrl <Key> C: copy-selection(CLIPBOARD) \n\
! Ctrl <Key> V: insert-selection(CLIPBOARD) \n\
! Shift Ctrl <Key> V: insert-selection(CLIPBOARD) \n\
! Shift <Key> Insert: insert-selection(CLIPBOARD) \n\
! Ctrl <Key> +: larger-vt-font() \n\
! Ctrl <Key> -: smaller-vt-font() \n\
! Shift Ctrl <Key>M: maximize() \n\
! Shift Ctrl <Key>R: restore()
!Background & foreground
!XTerm*background: #002B36
!WONTFIX: a pure black is better on OLED
XTerm*background: #000000
XTerm*foreground: #D2D2D2
XTerm*borderColor: #343434
!Colors: Solarized dark
!-------------------------
!black
XTerm*color0: #222222
XTerm*color8: #454545
!red
XTerm*color1: #9E5641
XTerm*color9: #CC896D
!green
XTerm*color2: #6C7E55
XTerm*color10: #C4DF90
!yellow
XTerm*color3: #CAAF2B
XTerm*color11: #FFE080
!blue
XTerm*color4: #7FB8D8
XTerm*color12: #B8DDEA
!magenta
XTerm*color5: #956D9D
XTerm*color13: #C18FCB
!cyan
XTerm*color6: #4c8ea1
XTerm*color14: #6bc1d0
!white
XTerm*color7: #808080
XTerm*color15: #cdcdcd
! For regular sized screens (not 4k)
! apt install fonts-terminus xfonts-terminus xfonts-terminus-oblique fonts-inconsolata
! Default font, used for drawing the menu
!XTerm*font: 12x24
! Ctrl-click menu choices
!XTerm*VT100.font1: terminus-12
!XTerm*VT100.font2: terminus-12
!XTerm*VT100.font3: terminus-16
!XTerm*VT100.font4: terminus-18
!XTerm*VT100.font5: terminus-20
!XTerm*VT100.font6: terminus-22
!XTerm*fontMenu.Label: VT Fonts
!XTerm*fontMenu*fontdefault*Label: Default
!XTerm*fontMenu*font1*Label: Unreadable
!XTerm*fontMenu*font2*Label: 12-points
!XTerm*fontMenu*font3*Label: 16-points
!XTerm*fontMenu*font4*Label: 18-points
!XTerm*fontMenu*font5*Label: 20-points
!XTerm*fontMenu*font6*Label: 22-points
! Aliasing and hinting is question of tastes
! I like it so I keep it even in 4k
! Xft.autohint: 0
! Xft.antialias: false
! Xft.hinting: false
! For 4k screens
! Default font, used for drawing the menu
XTerm*font: -*-terminus-*-r-*-32-*-*-*-*-*-*-*
! Ctrl-click menu choices
XTerm*font1: -*-terminus-*-r-*-18-*-*-*-*-*-*-*
XTerm*font2: -*-terminus-*-r-*-20-*-*-*-*-*-*-*
XTerm*font3: -*-terminus-*-r-*-22-*-*-*-*-*-*-*
XTerm*font4: -*-terminus-*-r-*-24-*-*-*-*-*-*-*
XTerm*font5: -*-terminus-*-r-*-28-*-*-*-*-*-*-*
XTerm*font6: -*-terminus-*-r-*-32-*-*-*-*-*-*-*
XTerm*fontMenu.Label: VT Fonts
XTerm*fontMenu*fontdefault*Label: Default
XTerm*fontMenu*font1*Label: Terminus 18
XTerm*fontMenu*font2*Label: Terminus 20
XTerm*fontMenu*font3*Label: Terminus 22
XTerm*fontMenu*font4*Label: Terminus 24
XTerm*fontMenu*font5*Label: Terminus 28
XTerm*fontMenu*font6*Label: Terminus 32
XTerm*faceSize: 22
! For a 4k display, matching hight for the menu:
XTerm*menuHeight: 2000
! No ligatures support yet, so iosevka is not shining
XTerm*faceName: "Iosevka SS04 Light"
XTerm*boldFont: "Iosevka SS04 SemiBold"
! Patched iosevka for nnn icons
!XTerm*faceName: "Iosevka Nerd Font Mono"
! Pached ubuntu font for powerline
!XTerm*faceName: "Ubuntu Mono for Powerline"
!XTerm*boldFont: "Ubuntu Mono Bold"
! FIXME: A pointer of the same approx size is not working
!Xcursor*size: 32
Xcursor.size: 64
! FIXME: The following can help making it more visible
!XTerm*pointerColor: blue
!XTerm*pointerColorBackground: red