.Xresources.erb 2.25 KB
Newer Older
1
<% require 'colorscheme'
2
dark = ColorScheme.dark
3
gui_scaling_factor = @facts['scaling'] ? @facts['scaling']['gui'] : 1
4
dark.terminal.each do |c| -%>
5
*color<%= c.ansi %>: <%= c.x11 %>
6
<% end -%>
7
8
9
*foreground: <%= dark.colors_by_base[0x06].x11 %>
*background: <%= dark.colors_by_base[0x01].x11 %>
*borderColor: <%= dark.colors_by_base[0x03].x11 %>
10

11
12
13
14
15
16
17
<% 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 %>
18
URxvt.font: xft:Hack:size=9,xft:DejaVu Sans Mono
19
URxvt.internalBorder: <%= (2 * gui_scaling_factor).round %>
20
URxvt.perl-ext-common: font-size,new-window,osc-xterm-clipboard
21
22
23
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
24
URxvt.keysym.C-M-0: perl:font-size:reset
25
URxvt.keysym.C-M-n: perl:new-window
26
URxvt.saveLines: 10000
27
URxvt.scrollBar: false
James T. Lee's avatar
James T. Lee committed
28
29
30
URxvt.scrollTtyOutput: false
URxvt.scrollWithBuffer: true
URxvt.scrollTtyKeypress: true
31
URxvt.secondaryScroll: false
James T. Lee's avatar
James T. Lee committed
32
URxvt.secondaryWheel: true
James T. Lee's avatar
James T. Lee committed
33
URxvt.termName: rxvt-unicode-256color-powerline
James T. Lee's avatar
James T. Lee committed
34
URxvt.urgentOnBell: true
35
URxvt.letterSpace: -1
36
37
38
<% if @facts['profile']['platform'] == 'pinebookpro' -%>
URxvt.buffered: false
<% end -%>
39

40
<% dark.terminal.each do |c| -%>
41
xterm*color<%= c.ansi %>: <%= c.x11 %>
42
<% end -%>
43
44
45
46
47
48
49
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
50
xterm*forceBoxChars: true
51
52
xterm*internalBorder: <%= (2 * gui_scaling_factor).round %>
xterm*saveLines: 10000
53
! Enable OSC 52 for tmux selection to primary buffer
54
xterm*allowWindowOps: true
55
56
57
! Selections should only go to primary buffer
xterm*selectToClipboard: false
xterm*VT100*translations: #override \n\
58
59
    Ctrl Meta <Key>c: copy-selection(CLIPBOARD) \n\
    Ctrl Meta <Key>v: insert-selection(CLIPBOARD) \n\
James T. Lee's avatar
James T. Lee committed
60
61
62
    Ctrl Meta <Key>+: larger-vt-font() \n\
    Ctrl Meta <Key>-: smaller-vt-font() \n\
    Ctrl Meta <Key>0: set-vt-font(d) \n\
63
    Ctrl Meta <Key>n: spawn-new-terminal()