rbreaves / betterScale

Better Scale helps Gnome & Budgie x11 users perfectly scale their desktop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

betterScale

BetterScale helps Gnome & Budgie x11 users perfectly scale their desktop.

This is something any HiDPI laptop, or even normal HD, user may want as it will properly scale to a size that is easily readable while remaining fully clear, crisp and sharp. No more messing around with dot files and setting DPI parameters all throughout your system.

BetterScale uses a similar concept for scaling as macs do by enabling Gnomes experimental scaling support & increasing the graphics framebuffer. Then betterScale will scale the framebuffer back down using xrandr.

Macbook Pro Retina 2880x1800

Standard HD Laptop 1920x1080

betterScale v0.1

Instructions

Simply copy the repo & run the setup file. That's it.

git clone https://github.com/rbreaves/betterScale.git
cd betterScale
./setup.sh

How to Uninstall

For now the closest thing to removal is to simply re-run the setup and select option 10. That will set your native resolution and undo the experimental GDK scaling and xrandr scaling. You can manually remove the /usr/share/X11/xorg.conf.d/20-intel.conf file if you want, but if you are not using intel then it will not impact you either way. The file only exists to remove tearing (happens regardless of scaling) or mouse cursor flickering issues caused by scaling.

TODO

  • Support multi-monitor (already done but not scripted yet)
  • Support custom scale percentages &/or resolution destinations
  • Combine with xeventbind & systemd to daemonize betterScale (will prompt user to re-apply if set resolution ever changes)
  • autorandr has a systemd service already that can re-apply a default profile on lid open status
  • Ask user if resolution applied correctly, if not then fallback to previous setting
  • Possibly add a system tray similar to RDM for macs, SwitchResX, or Ultramon for changing scales or resolutions.

Resources

https://wiki.archlinux.org/title/HiDPI

About

Better Scale helps Gnome & Budgie x11 users perfectly scale their desktop.

License:MIT License


Languages

Language:Shell 100.0%