From 30c8f78f702c8534df7fa1b192c3db2032f7d270 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 23 Aug 2021 14:40:55 +0200 Subject: [PATCH] xsettings: also set Xft.rgba Emacs with Harfbuzz is not using XSETTINGS for that... There is a code path enabled only with XFT. It seems the settings is ignored by Cairo, despite code for parsing that being here... --- bin/xsettingsd-setup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/xsettingsd-setup b/bin/xsettingsd-setup index d062992..0d00a6f 100755 --- a/bin/xsettingsd-setup +++ b/bin/xsettingsd-setup @@ -29,7 +29,10 @@ dpi=${dpis%% *} dpi=${dpi:-96} echo "using ${dpi}dpi" >&2 -echo Xft.dpi: $dpi | xrdb -merge +{ + echo Xft.dpi: $dpi + echo Xft.rgba: $( [ $dpi -gt 144 ] && echo none || echo rgb ) +} | xrdb -merge xrandr --dpi $dpi # Build xsettingsd