xsettings: set RGBA depending on the DPI setting

When using low DPI, it's still useful to have it.
This commit is contained in:
Vincent Bernat 2019-05-28 11:55:01 +02:00
parent efb006065b
commit cb25670d97
2 changed files with 1 additions and 1 deletions

View file

@ -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

View file

@ -1,4 +1,3 @@
Xft/Antialias 1
Xft/Hinting 1
Xft/HintStyle "hintslight"
Xft/RGBA "none"