Commit 3f548cf9 authored by James T. Lee's avatar James T. Lee
Browse files

urxvt: Set padding based on scaling factor

parent cbb1b293
<% require 'colorscheme' <% require 'colorscheme'
dark = ColorScheme.dark dark = ColorScheme.dark
light = ColorScheme.light light = ColorScheme.light
gui_scaling_factor = @facts['scaling'] ? @facts['scaling']['gui'] : 1
light.terminal.each do |c| -%> light.terminal.each do |c| -%>
*color<%= c.ansi %>: <%= c.x11 %> *color<%= c.ansi %>: <%= c.x11 %>
<% end -%> <% end -%>
...@@ -16,6 +17,7 @@ URxvt.background: <%= dark.background.x11 %> ...@@ -16,6 +17,7 @@ URxvt.background: <%= dark.background.x11 %>
URxvt.borderColor: <%= dark.background.x11 %> URxvt.borderColor: <%= dark.background.x11 %>
URxvt.cursorColor: <%= dark.cursor.x11 %> URxvt.cursorColor: <%= dark.cursor.x11 %>
URxvt.font: xft:Hack:size=9,xft:DejaVu Sans Mono 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.perl-ext-common: font-size,new-window,osc-xterm-clipboard
URxvt.keysym.C-M-equal: perl:font-size:increase URxvt.keysym.C-M-equal: perl:font-size:increase
URxvt.keysym.C-M-plus: perl:font-size:increase URxvt.keysym.C-M-plus: perl:font-size:increase
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment