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

7 lines
299 B
Bash
Raw Normal View History

2024-06-03 19:13:14 -05:00
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
2024-06-03 19:08:38 -05:00
gsettings set org.gnome.desktop.interface text-scaling-factor 0.8
fi