sunhat/install/fix-framework-text-scaling.sh

7 lines
304 B
Bash
Raw Normal View History

2024-06-03 19:16:25 -05:00
COMPUTER_MAKER=$(sudo dmidecode -t system | grep 'Manufacturer:' | awk '{print $2}')
2024-06-03 19:13:14 -05:00
SCREEN_RESOLUTION=$(xrandr | grep '*+' | awk '{print $1}')
2024-06-03 19:16:25 -05:00
if [ "$COMPUTER_MAKER" == "Framework" ] && [ "$SCREEN_RESOLUTION" == "2256x1504" ]; then
2024-06-03 19:08:38 -05:00
gsettings set org.gnome.desktop.interface text-scaling-factor 0.8
fi