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...
This commit is contained in:
Vincent Bernat 2021-08-23 14:40:55 +02:00
parent d9220045aa
commit 30c8f78f70

View file

@ -29,7 +29,10 @@ dpi=${dpis%% *}
dpi=${dpi:-96} dpi=${dpi:-96}
echo "using ${dpi}dpi" >&2 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 xrandr --dpi $dpi
# Build xsettingsd # Build xsettingsd