Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.07 KB

readme.md

File metadata and controls

43 lines (27 loc) · 1.07 KB

GNOME App Scaler

An alternative to native GNOME UI scaling. Specify different scaling values per app.

Useful when alternating between a laptop screen and an external screen with different dpi or resolution.

Includes presets for

  • Gnome Desktop (display scale 1x or 2x, font size, dock icons, cursor)
  • Firefox
  • Chromium

Of course, you're free to extend the script according to your needs.

Requirements

  • Paths are working for Ubuntu 22.04
  • Python 3

Usage

  • Rename settings.example.json to settings.json & enter your Firefox profile path
  • Edit settings.json as desired or add presets
  • ./scaler.py <PRESET>

Default presets:

  • default
  • 1080p14inch (Thinkpads,etc.)
  • 4k32inch (large 4k monitors)

Permissions & Privileges

Unfortunately, Chromium .desktop file manipulation needs root privileges. The scaler starts a root subprocess & asks you for your password when the time has come.

Aliasing

Example:

alias dpireset='/home/willy/scripts/scaler.py default'
alias dpilaptop='/home/willy/scripts/scaler.py 1080p14inch'