diff options
Diffstat (limited to 'x/Xresources')
-rw-r--r-- | x/Xresources | 108 |
1 files changed, 106 insertions, 2 deletions
diff --git a/x/Xresources b/x/Xresources index 3f586a87..829b208e 100644 --- a/x/Xresources +++ b/x/Xresources @@ -1,2 +1,106 @@ -#include ".Xresources.d/URxvt" -#include ".Xresources.d/XTerm" +/* Declare our xterms have 256 colors */ +XTerm.termName: xterm-256color + +/** + * Just use "xterm" as the title, no need to complicate it with the name of the + * actual binary called. + */ +XTerm.title: xterm + +/** + * Don't pass mouse events to applications, even if they ask for it; mouse + * interaction with command-line tools isn't normally very well-written anyway. + * Better just to treat it as text. + */ +XTerm.vt100.allowMouseOps: false + +/** + * Don't let applications set the window title; it's usually more confusing + * than helpful, with things like command wrappers getting in the way. + */ +XTerm.vt100.allowTitleOps: false + +/* Don't munge characters' 8th bit with Alt, send 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 + +/** + * 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 + +/** + * Use Ubuntu Mono as a TrueType font if I decide to switch to it, but default + * to using the default bitmap font. + */ +XTerm.vt100.faceName: xft:Ubuntu Mono +XTerm.vt100.faceSize: 9 +XTerm.vt100.renderFont: defaultOff + +/** + * Draw our own box characters, even if the font seems to support them. Using + * Ubuntu Mono at least, this removes gaps between vertical lines. + */ +XTerm.vt100.forceBoxChars: true + +/** + * Put the terminal text contents flush against the edges of the window, + * otherwise things like tmux look awkward. + */ +XTerm.vt100.internalBorder: 0 + +/** + * Jump to the end of the buffer if I write to it, but don't if there's just + * something new to read. Funny how the defaults are the other way around... + */ +XTerm.vt100.scrollKey: true +XTerm.vt100.scrollTtyOutput: false + +/** + * 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 |