-
Notifications
You must be signed in to change notification settings - Fork 33
/
Xresources
178 lines (150 loc) · 6.44 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
! NOTE: Xft.dpi is set via ~/.dotfiles/usr/bin/xsettings-setup
Xft*antialias: True
Xft*hinting: Full
! Used in ~/.dotfiles/usr/bin/sh-setup-x-theme, and the solarized theme for
! awesomeWM.
! Not set by default, otherwise it would get reset with automatic sourcing of
! the file, e.g. through /etc/lightdm/Xsession.
! mythemevariant: dark/light
! Solarized colorscheme variants. {{{
! No default, otherwise this overrides ~/.xprofile (with LightDM on Arch).
#if defined(SOLARIZED_LIGHT) || defined(SOLARIZED_DARK)
#ifdef SOLARIZED_DARK
#include ".dotfiles/lib/base16/base16-solarized.dark.256.xresources"
#endif
#ifdef SOLARIZED_LIGHT
#include ".dotfiles/lib/base16/base16-solarized.light.256.xresources"
#endif
! XXX: obsolete with base16 / needs adjustment?!
! light
*solarizedlight.background: #fdf6e3
*solarizedlight.borderColor: #fdf6e3
*solarizedlight.foreground: #657b83
*solarizedlight.fadeColor: #fdf6e3
*solarizedlight.cursorColor: #586e75
*solarizedlight.pointerColorBackground:#93a1a1
*solarizedlight.pointerColorForeground:#586e75
! XXX: obsolete with base16 / needs adjustment?!
! dark
*solarizeddark.background: #002b36
*solarizeddark.borderColor: #002b36
*solarizeddark.foreground: #839496
*solarizeddark.fadeColor: #002b36
*solarizeddark.cursorColor: #93a1a1
*solarizeddark.pointerColorBackground:#586e75
*solarizeddark.pointerColorForeground:#93a1a1
! Switch between light/dark!
! (not in there: fadeColor, pointerColorBackground)
! TODO: change MY_X_THEME_VARIANT / dircolors?!
! See ~/bin/query-urxvt and ~/bin/xterm-bg, and ~df/usr/bin/sh-setup-x-theme.
URxvt.keysym.M-C-8: command:\033]11;#fdf6e3\007\033]10;#657b83\007\033]12;#586e75\007\033]13;#586e75\007\033]708;#fdf6e3\007
URxvt.keysym.M-C-9: command:\033]11;#002b36\007\033]10;#839496\007\033]12;#93a1a1\007\033]13;#93a1a1\007\033]708;#002b36\007
#endif
! URxvt*keysym.Mod4-i: command:\033]49;[100]#1D1F21\007
! URxvt*keysym.Mod4-I: command:\033]49;[70]#1D1F21\007
! }}}
! source: https://wiki.archlinux.de/title/Urxvt#Konfiguration
! limited to 64k?! (per man page, for most machines)
! TODO: set/increase on compile-time?!
URxvt.saveLines: 81920
URxvt.scrollBar: true
! Scrollbar style - rxvt (default), plain (most compact), next, or xterm.
URxvt.scrollstyle: rxvt
URxvt.scrollBar_right: true
URxvt.scrollBar_floating: true
! Set scrollColor to bg color of current theme variant bg color.
#ifdef SOLARIZED_DARK
URxvt.scrollColor: #002b36
#else
URxvt.scrollColor: #fdf6e3
#endif
URxvt.jumpScroll: true
URxvt.skipScroll: true
! Disable scrollback in secondary screen (https://wiki.archlinux.org/index.php/rxvt-unicode#Scrollback_buffer_in_secondary_screen).
! NOTE: touchpad scrolling in "less" still does not work, but in gnome-terminal.
! NOTE: using vtwheel extension for mouse/touchpad-scrolling.
URxvt.secondaryScreen: 1
URxvt.secondaryScroll: 0
! Do not scroll with output.
URxvt.scrollTtyOutput: false
! Scroll in relation to buffer (with mouse scroll or Shift+Page Up).
URxvt.scrollWithBuffer: true
! scroll back to the bottom on keypress
URxvt.scrollTtyKeypress: true
URxvt.iconFile: /usr/share/icons/gnome/32x32/apps/gnome-terminal.png
! NOTE: proper font/glyph handling needs patched urxvt, see also:
! http://lists.schmorp.de/pipermail/rxvt-unicode/2014q4/002042.html
! Optimized for x220
! URxvt.font: xft:Ubuntu Mono derivative Powerline Plus Nerd File Types:size=9.14,xft:monospace,xft:Symbola
! Optimized for x250
URxvt.font: xft:UbuntuMono:size=7.6,xft:DejaVu Sans Mono,xft:monospace,xft:Symbola,xft:FontAwesome,xft:UbuntuMonoDerivativePowerline Nerd Font:size=8
URxvt.perl-ext-common: default,-matcher,urxvt-perls/url-select,urxvt-perls/keyboard-select,urxvt-font-size/font-size,bell-command
! font-size: https://github.com/majutsushi/urxvt-font-size
URxvt.font-size.step: 0.5
URxvt.keysym.C-A-plus: perl:font-size:increase
URxvt.keysym.C-A-minus: perl:font-size:decrease
URxvt.keysym.C-A-0: perl:font-size:reset
! url-select:
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.url-select.launcher: open-in-running-browser
! NOTE: might slow down urxvt a lot, e.g. for `ag` with long lines.
! URxvt.url-select.underline: true
URxvt.url-select.underline: false
URxvt.url-select.button: 2
! https://github.com/muennich/urxvt-perls/issues/34
URxvt.matcher.pattern.0: (?:https?:/ /|ftp:/ /|news:/ /|mailto:|file:/ /|\\bwww\\.) [\\w\\-\\@;\\/?:&=%\\$.+!*\\x27,~#]* ( \\([\\w\\-\\@;\\/?:&=%\\$.+!*\\x27,~#]*\\) | [\\w\\-\\@;\\/?:&=%\\$+*~])+
URxvt.matcher.pattern.1: [a-f0-9]{7,10}\\.\\.[a-f0-9]{7,10}
! keyboard-select:
URxvt.keysym.M-Escape: perl:keyboard-select:activate
! XXX: resource marked as deprecated, but is required to remove the default keysym!
URxvt.searchable-scrollback: C-M-r
! Should be:
URxvt.keysym.M-s: builtin:
URxvt.keysym.C-M-r: searchable-scrollback:start
URxvt.keysym.C-M-s: perl:keyboard-select:search
URxvt.urlLauncher: open-in-running-browser
URxvt.matcher.button: 2
URxvt.tabbed.saveLines: 1000
URxvt.tabbed.scrollBar: false
URxvt.tabbed.tabbar-fg: 3
URxvt.tabbed.tabbar-bg: 0
URxvt.tabbed.tab-fg: 0
URxvt.tabbed.tab-bg: 1
URxvt.tabbed.secondaryScroll: true
! 84 columns: 2 terminals next to each other on the x220 screen.
URxvt.geometry: 84x32
! Do not fade inactive windows, controlled by awesome (opacity module).
URxvt.fading: 0
URxvt.urgentOnBell:true
! NOTE: disables audible bell, not working properly through pulseaudio though (XBell).
URxvt.visualBell:true
! Workaround for http://askubuntu.com/questions/546569/pulseaudio-does-not-ring-bell-through-xbell-function-urxvt
! URxvt.bell-command: xkbbell
URxvt.cutchars: "()*,<>[]{}|«»"
! Hack to act more like XTerm.
! Source: http://www.netswarm.net/misc/urxvt-xtermcompat.txt
! Fix Shift/Control/Meta with function and insert keys.
! S-F1 is normally sent as F11-F20, and S-F11+S-F12 being extra strange.
#include ".dotfiles/Xresources.d/urxvt-xtermcompat.txt"
! xterm {{{
xterm*faceName: xft:Ubuntu Mono derivative Powerline Plus Nerd File Types Mono Plus Pomicons:size=8
xterm*renderFont: true
xterm*termName: xterm-256color
xterm*geometry: 80x25
xterm*dynamicColors: true
xterm*utf8: 2
! use utf8 (query/set):
xterm*titleModes: 12
xterm*eightBitInput: true
xterm*saveLines: 512
xterm*scrollKey: true
xterm*scrollTtyOutput: false
xterm*scrollBar: true
xterm*rightScrollBar: true
xterm*jumpScroll: true
xterm*multiScroll: true
xterm*toolBar: true
! For tmux set-clipboard.
! xterm*disallowedWindowOps: 20,21,SetXprop
! }}}
*TkTheme: clearlooks