Skip to content

Instantly share code, notes, and snippets.

@datlife
Last active May 1, 2020 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save datlife/a4635b4f01cde451f6bc4d9863c8d50c to your computer and use it in GitHub Desktop.
Save datlife/a4635b4f01cde451f6bc4d9863c8d50c to your computer and use it in GitHub Desktop.
Fractional Scaling for Ubuntu 18.04
#!/bin/bash
# Enable fractional scaling on Ubuntu 18.04
#
# Problem:
# --------
# - Ubuntu 18.04 runs on Gnome 3.28, whichs does not support fractional scaling (120%, 130%).
# - As a result, the text and icon on my 4K 27" monitor are very small.
#
# Usage:
# -------
# Enable executable script:
# > chmod +x fscale.h
# > /fscale.h
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 1.5x1.5
xrandr --output DP-1 --panning 3840x2160
@divyekalra1
Copy link

How do you kill this script in Ubuntu 18.4 LTS? I ran this script using the terminal and can't figure out how to revert back to my old settings

@datlife
Copy link
Author

datlife commented May 1, 2020

It's been a long time. I forgot how to disable it tbh.

Highly recommend Ubuntu 20.04. It scales well on my 4K screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment