From 2bb38d765f4d4188622f7363b96e989918e7be91 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 3 Jun 2024 17:13:14 -0700 Subject: [PATCH] Make it more explicit --- install/fix-framework-text-scaling.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install/fix-framework-text-scaling.sh b/install/fix-framework-text-scaling.sh index aeebce0..c5d3be6 100644 --- a/install/fix-framework-text-scaling.sh +++ b/install/fix-framework-text-scaling.sh @@ -1,3 +1,6 @@ -if [ $(xrandr | grep '*+' | awk '{print $1}') == "2256x1504" ]; then +COMPUTER_MAKER=$(sudo dmidecode -t system | grep 'Manufacturer' | awk '{print $2}') +SCREEN_RESOLUTION=$(xrandr | grep '*+' | awk '{print $1}') + +if [ "$COMPUTER_MAKER" == "Framework" && "$SCREEN_RESOLUTION" == "2256x1504" ]; then gsettings set org.gnome.desktop.interface text-scaling-factor 0.8 fi