From cb25670d97008b6be99cac8c9de40142ef8d7848 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 28 May 2019 11:55:01 +0200 Subject: [PATCH] xsettings: set RGBA depending on the DPI setting When using low DPI, it's still useful to have it. --- bin/xsettingsd-setup | 1 + xsettingsd | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xsettingsd-setup b/bin/xsettingsd-setup index 8194b85..7953f20 100755 --- a/bin/xsettingsd-setup +++ b/bin/xsettingsd-setup @@ -22,6 +22,7 @@ change() { { cat ~/.config/awesome/xsettingsd echo Xft/DPI $(( $1*1024 )) + echo Xft/RGBA \"$( [ $1 -gt 144 ] && echo none || echo rgb )\" echo Gdk/WindowScalingFactor $(( $1/96 )) echo Gdk/UnscaledDPI $(( $1*1024/($1/96) )) } > ~/.xsettingsd diff --git a/xsettingsd b/xsettingsd index 0841fd7..265da66 100644 --- a/xsettingsd +++ b/xsettingsd @@ -1,4 +1,3 @@ Xft/Antialias 1 Xft/Hinting 1 Xft/HintStyle "hintslight" -Xft/RGBA "none"