From e31edd39807c97fe9f320fad964bca445022fc97 Mon Sep 17 00:00:00 2001 From: Joseph Groocock Date: Sat, 16 Apr 2016 18:54:16 +0100 Subject: [PATCH] Scale everything for HiDPI screen --- .Xresources | 18 +++++++++--------- .config/i3/config | 28 +++++----------------------- .config/termite/config | 2 +- .xsession | 3 ++- 4 files changed, 17 insertions(+), 34 deletions(-) diff --git a/.Xresources b/.Xresources index 4cf13ec..8645b15 100644 --- a/.Xresources +++ b/.Xresources @@ -18,17 +18,17 @@ xterm.metaSendsEscape: true !Set TERM urxvt.termName: xterm-256color -Xft.dpi: 96 +Xft.dpi: 128 Xft.antialias: true Xft.rgba: rgb Xft.autohint: false Xft.hinting: true Xft.hintstyle: hintfull -urxvt*font: xft:Sauce Code Pro:style=Regular:size=9 -urxvt*imFont: xft:Sauce Code Pro:style=Regular:size=9 -urxvt*boldFont: xft:Sauce Code Pro:style=Bold:size=9 -urxvt*italicFont: xft:Sauce Code Pro:style=Italic:size=9 -urxvt*boldItalicFont: xft:Sauce Code Pro:style=Bold,Italic:size=9 +urxvt*font: xft:Sauce Code Pro:style=Regular:size=10.5 +urxvt*imFont: xft:Sauce Code Pro:style=Regular:size=10.5 +urxvt*boldFont: xft:Sauce Code Pro:style=Bold:size=10.5 +urxvt*italicFont: xft:Sauce Code Pro:style=Italic:size=10.5 +urxvt*boldItalicFont: xft:Sauce Code Pro:style=Bold,Italic:size=10.5 ! clickable Url and copy paste keys @@ -104,10 +104,10 @@ rofi.color-normal: #00383C4A, #D3DAE3, #00383C4A, #5294E2, #ECEFF1 rofi.bc: #CC383C4A rofi.bw: 5 rofi.padding: 8 -rofi.lines: 12 +rofi.lines: 14 rofi.width: 40 -rofi.font: Noto Sans 14 -rofi.line-margin: 6 +rofi.font: Noto Sans 18 +rofi.line-margin: 4 rofi.sep: | rofi.prompt: > rofi.ssh-command: {terminal} -e "{ssh-client} {host}" diff --git a/.config/i3/config b/.config/i3/config index 8bdbc63..aceb094 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -44,22 +44,6 @@ bindsym $mod+e sticky toggle bindsym $mod+a focus parent bindsym $mod+o focus child -# Screen configs # -set $bl "DP-5" -set $tl "DP-1" -set $br "HDMI-0" -set $tr "DP-3" - -# Workspace -> Screen -workspace 1 output $bl -workspace 2 output $br -workspace 3 output $tl -workspace 4 output $tr -workspace 5 output $bl -workspace 6 output $br -workspace 7 output $tl -workspace 8 output $tr - # switch to workspace bindsym $mod+1 workspace 1 bindsym $mod+2 workspace 2 @@ -112,13 +96,11 @@ bar { workspace_buttons yes strip_workspace_numbers yes tray_output primary - tray_padding 4 - height 24 + tray_padding 2 + height 28 - output $bl - output $br output primary - position bottom + position top colors { separator #757575 @@ -143,8 +125,8 @@ for_window [title="^rofi$"] floating enable new_window pixel 5 new_float none -gaps inner 7 -gaps outer 2 +gaps inner 11 +gaps outer 1 #smart_gaps on focus_follows_mouse yes diff --git a/.config/termite/config b/.config/termite/config index 9bdf2f1..57d34bc 100644 --- a/.config/termite/config +++ b/.config/termite/config @@ -1,5 +1,5 @@ [options] -font = SauceCodePro 9 +font = SauceCodePro 10.5 scrollback_lines = 100000 cursor_blink = off size_hints = true diff --git a/.xsession b/.xsession index bf828d9..fd5a8da 100755 --- a/.xsession +++ b/.xsession @@ -1,3 +1,4 @@ setxkbmap -option caps:none xset r rate 200 18 -xrandr --dpi 96 +xrandr --dpi 125 +xrandr --output eDP-1 --primary