From b112ccd25f47bdccccbe74aa87cbe42532172c80 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 6 Feb 2024 14:16:33 -0500 Subject: Utilize xorg dpi scaling on a per-host setup --- .config/alacritty/alacritty.yml | 5 +---- .config/startup/workstation | 3 +++ .config/xresources/workstation | 7 +++++++ 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .config/xresources/workstation diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index a19131f..d91ec52 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -165,7 +165,7 @@ font: style: Bold Italic # Point size - size: 8 + size: 16 # Offset is the extra space around each character. `offset.y` can be thought # of as modifying the line spacing, and `offset.x` as modifying the letter @@ -307,7 +307,6 @@ font: # magenta: '#c397d8' # cyan: '#70c0b1' # white: '#eaeaea' - # Dim colors # # If the dim colors are not set, they will be calculated automatically based @@ -427,7 +426,6 @@ cursor: # Thickness of the cursor relative to the cell width as floating point number # from `0.0` to `1.0`. # thickness: 0.15 - # Live config reload (changes require restart) # live_config_reload: true # Shell @@ -883,7 +881,6 @@ key_bindings: # - Debug # - Trace # log_level: Warn - # Renderer override. # - glsl3 # - gles2 diff --git a/.config/startup/workstation b/.config/startup/workstation index afbc776..30399ee 100755 --- a/.config/startup/workstation +++ b/.config/startup/workstation @@ -1,5 +1,8 @@ #!/bin/sh +# load host specific Xresources settings (DPI, etc.) +xrdb -merge "$XDG_CONFIG_HOME/xresources/workstation" + # Pipewire setup: gentoo-pipewire-launcher & diff --git a/.config/xresources/workstation b/.config/xresources/workstation new file mode 100644 index 0000000..2d6d9c9 --- /dev/null +++ b/.config/xresources/workstation @@ -0,0 +1,7 @@ +Xft.dpi: 96 +Xft.autohing: 0 +Xft.lcdfilter: lcddefault +Xft.hintstyle: hintfull +Xft.hinting: 1 +Xft.antialias: 1 +Xft.rgba: rgb -- cgit v1.2.3