.Xresources.erb 1.74 KB
Newer Older
1
2
#include "/etc/X11/Xresources"

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

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

40
<% dark.terminal.each do |c| -%>
41
XTerm*color<%= c.ansi %>: <%= c.x11 %>
42
<% end -%>
43
44
45
46
47
48
49
50
51
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*internalBorder: <%= (2 * gui_scaling_factor).round %>
XTerm*saveLines: 10000