Set fractional display scaling on Ubuntu 18.10 (XORG)

I am using an LG 5K monitor, and the display scaling options are very limited in gnome-shell, only increments of 100%.

To have fractional scaling, I tried this script:

#!/bin/bash 

gsettings set org.gnome.desktop.interface scaling-factor 2
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gdk/WindowScalingFactor': <2>}"
xrandr --output DP-1 --scale $1x$1

I added that in a script inside /usr/bin/scale_me_please.sh and make it executable:

sudo chmod +x /usr/bin/scale_me_please.sh

Now, whenever I am at work and need to scale it, I just run:

scale_me_please.sh 1.4

Just perfect!

Enjoy!

Source:

https://askubuntu.com/questions/1029436/enable-fractional-scaling-for-ubuntu-18-04

About SoCRaT

Research Support and Infrastructure Engineer, OSS & Linux Geek
This entry was posted in Ubuntu and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s