-
Notifications
You must be signed in to change notification settings - Fork 2
/
.Xresources.erb
64 lines (62 loc) · 2.32 KB
/
.Xresources.erb
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
<% require 'colorscheme'
dark = ColorScheme.dark
gui_scaling_factor = @facts['scaling'] ? @facts['scaling']['gui'] : 1
text_scaling_factor = @facts['scaling'] ? @facts['scaling']['text'] : 1
-%>
<% dark.terminal.each do |c| -%>
*color<%= c.ansi %>: <%= c.x11 %>
<% end -%>
*foreground: <%= dark.colors_by_base[0x06].x11 %>
*background: <%= dark.colors_by_base[0x01].x11 %>
*borderColor: <%= dark.colors_by_base[0x03].x11 %>
<% dark.terminal.each do |c| -%>
URxvt.color<%= c.ansi %>: <%= c.x11 %>
<% end -%>
URxvt.foreground: <%= dark.foreground.x11 %>
URxvt.background: <%= dark.background.x11 %>
URxvt.borderColor: <%= dark.background.x11 %>
URxvt.cursorColor: <%= dark.cursor.x11 %>
URxvt.font: xft:Hack:size=9,xft:DejaVu Sans Mono
URxvt.internalBorder: <%= (2 * gui_scaling_factor).round %>
URxvt.perl-ext-common: font-size,new-window,osc-xterm-clipboard
URxvt.keysym.C-M-equal: perl:font-size:increase
URxvt.keysym.C-M-plus: perl:font-size:increase
URxvt.keysym.C-M-minus: perl:font-size:decrease
URxvt.keysym.C-M-0: perl:font-size:reset
URxvt.keysym.C-M-n: perl:new-window
URxvt.saveLines: 10000
URxvt.scrollBar: false
URxvt.scrollTtyOutput: false
URxvt.scrollWithBuffer: true
URxvt.scrollTtyKeypress: true
URxvt.secondaryScroll: false
URxvt.secondaryWheel: true
URxvt.termName: rxvt-unicode-256color-powerline
URxvt.urgentOnBell: true
URxvt.letterSpace: <%= (-1 * text_scaling_factor).round %>
<% dark.terminal.each do |c| -%>
xterm*color<%= c.ansi %>: <%= c.x11 %>
<% end -%>
xterm*foreground: <%= dark.foreground.x11 %>
xterm*background: <%= dark.background.x11 %>
xterm*borderColor: <%= dark.background.x11 %>
xterm*cursorColor: <%= dark.cursor.x11 %>
xterm*termName: xterm-256color-powerline
xterm*faceName: monospace
xterm*faceSize: 9
xterm*forceBoxChars: true
xterm*internalBorder: <%= (2 * gui_scaling_factor).round %>
xterm*saveLines: 10000
xterm*scrollBar: false
xterm*toolBar: false
! Enable OSC 52 for tmux selection to primary buffer
xterm*allowWindowOps: true
! Selections should only go to primary buffer
xterm*selectToClipboard: false
xterm*VT100*translations: #override \n\
Ctrl Meta <Key>c: copy-selection(CLIPBOARD) \n\
Ctrl Meta <Key>v: insert-selection(CLIPBOARD) \n\
Ctrl Meta <Key>+: larger-vt-font() \n\
Ctrl Meta <Key>-: smaller-vt-font() \n\
Ctrl Meta <Key>0: set-vt-font(d) \n\
Ctrl Meta <Key>n: spawn-new-terminal()