aboutsummaryrefslogtreecommitdiff
path: root/x/Xresources
blob: 1c6ab1aa17bc135a5338dbba0979167e3c12401a (plain) (blame)
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
/* Declare our xterms have 256 colors */
XTerm.termName: xterm-256color

/* Don't munge 8th bit of characters with Alt, send an Escape prefix instead */
XTerm.vt100.altIsNotMeta: true
XTerm.vt100.altSendsEscape: true

/* Flash my window manager if a BEL is sounded in an xterm */
XTerm.vt100.bellIsUrgent: true

/**
 * Stick all of the non-control ASCII characters into the same xterm selection
 * group as the alphanumeric ones added by default, except for space and the
 * left and right angle brackets (less-than and greater-than), because being
 * able to click URLs quickly outweighs anything else.
 */
XTerm.vt100.charClass: \
	33-59:48, \
	60:60, \
	61:48, \
	62:60, \
	63-126:48

/**
 * Put the terminal text contents flush against the edges of the window,
 * otherwise things like tmux look awkward.
 */
XTerm.vt100.internalBorder: 0

/**
 * Set some less harsh colors than the xterm defaults; I think I got these from
 * somewhere else and tweaked them, but I can't remember where it was now.
 */
XTerm.vt100.background: rgb:03/03/03
XTerm.vt100.foreground: rgb:e0/e0/e0
XTerm.vt100.color0: rgb:03/03/03
XTerm.vt100.color1: rgb:cc/00/00
XTerm.vt100.color2: rgb:3e/aa/06
XTerm.vt100.color3: rgb:c4/a0/00
XTerm.vt100.color4: rgb:34/65/a4
XTerm.vt100.color5: rgb:75/50/7b
XTerm.vt100.color6: rgb:06/98/9a
XTerm.vt100.color7: rgb:d3/d7/cf
XTerm.vt100.color8: rgb:30/30/30
XTerm.vt100.color9: rgb:ef/29/29
XTerm.vt100.color10: rgb:7a/f2/34
XTerm.vt100.color11: rgb:fc/e9/4f
XTerm.vt100.color12: rgb:72/9f/cf
XTerm.vt100.color13: rgb:ad/7f/a8
XTerm.vt100.color14: rgb:34/e2/e2
XTerm.vt100.color15: rgb:ee/ee/ec

/**
 * Bind extra keys to copy/paste to/from CLIPBOARD rather than PRIMARY, as
 * a simple selection does.
 */
XTerm.vt100.translations: #override \n\
	Ctrl Shift <Key>C: copy-selection(CLIPBOARD) \n\
	Ctrl Shift <Key>V: insert-selection(CLIPBOARD)

/**
 * Trim trailing spaces from selections; if I'm copying text from a terminal
 * emulator window, I probably don't want it byte-perfect for hashing purposes
 * or anything like that.
 */
XTerm.vt100.trimSelection: true