Auto-detect the Framework 13 gen 1 display resolution and correct scaling factor for it

This commit is contained in:
David Heinemeier Hansson 2024-06-03 17:07:45 -07:00
parent ac04b728b0
commit c59cde22bd
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1,3 @@
if [ $(xrandr | grep '*+' | awk '{print $1}') == "2256x1504" ]; then
gsettings set org.gnome.desktop.interface text-scaling-factor 0.8
end

View File

@ -1,2 +0,0 @@
# FIXME: Only do this on Framework laptops with the lower-resolution display (or similar displays)
gsettings set org.gnome.desktop.interface text-scaling-factor 0.8