All Projects → burntcustard → x11-fractional-display-scaling

burntcustard / x11-fractional-display-scaling

Licence: MIT license
Script and instructions to get fractional display scaling working nicely on Linux distros that use X11

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to x11-fractional-display-scaling

Wallutils
🌆 Utilities for handling monitors, resolutions, wallpapers and timed wallpapers
Stars: ✭ 145 (+178.85%)
Mutual labels:  xorg, x11, gnome
Chamferwm
A tiling X11 window manager with Vulkan compositor.
Stars: ✭ 200 (+284.62%)
Mutual labels:  xorg, x11
Sara
Originally a fork of catwm, now an offspring of dwm with a streamlined featureset, plus some bspwm.
Stars: ✭ 179 (+244.23%)
Mutual labels:  xorg, x11
Unclutter Xfixes
A rewrite of unclutter using the x11-xfixes extension
Stars: ✭ 236 (+353.85%)
Mutual labels:  xorg, x11
Custard
custard window manager
Stars: ✭ 141 (+171.15%)
Mutual labels:  xorg, x11
Picom
A lightweight compositor for X11
Stars: ✭ 2,299 (+4321.15%)
Mutual labels:  xorg, x11
Libagar
Cross-Platform GUI Toolkit (stable)
Stars: ✭ 212 (+307.69%)
Mutual labels:  xorg, x11
I3
A fork of the i3 window manager with gaps and some other features
Stars: ✭ 5,512 (+10500%)
Mutual labels:  xorg, x11
mutter-x11-scaling
Mutter build with Ubuntu patch for Xorg fractional scaling on Manjaro / Arch Linux
Stars: ✭ 77 (+48.08%)
Mutual labels:  gnome, scaling
Ocean-blue-GDM3
Ocean Blue GDM3 theme for ubuntu
Stars: ✭ 27 (-48.08%)
Mutual labels:  gnome, gnome-shell
gnome-shell-panel-date-format
Allows to customize the date format on the panel.
Stars: ✭ 30 (-42.31%)
Mutual labels:  gnome, gnome-shell
Octobtt
OctoBTT
Stars: ✭ 77 (+48.08%)
Mutual labels:  xorg, x11
Boston-Icons
Boston is an exclusive icon theme inspired by functionalist design and a touch of early computer icons. The project is focused on elemental properties, basic shapes, a reduced color palette and visual hierarchy.
Stars: ✭ 106 (+103.85%)
Mutual labels:  gnome, gnome-shell
Hideit.sh
Automagically hide/show a window by its name when the cursor is within a defined region or you mouse over it.
Stars: ✭ 171 (+228.85%)
Mutual labels:  xorg, x11
Xsuspender
👀 💻 💤 🔋 Save battery by auto-suspending unfocused X11 applications.
Stars: ✭ 53 (+1.92%)
Mutual labels:  xorg, x11
Xf86 Input Wacom
X.Org driver for Wacom devices
Stars: ✭ 201 (+286.54%)
Mutual labels:  xorg, x11
dxhd
daky's X11 Hotkey Daemon
Stars: ✭ 80 (+53.85%)
Mutual labels:  xorg, x11
xwmfs
X11 Window-Manager file system based on FUSE
Stars: ✭ 21 (-59.62%)
Mutual labels:  xorg, x11
X11docker
Run GUI applications and desktops in docker and podman containers. Focus on security.
Stars: ✭ 3,797 (+7201.92%)
Mutual labels:  xorg, x11
gnome-shell-extension-syncthing-indicator
Put an indicator on the panel signalling the Syncthing daemon status using SystemD
Stars: ✭ 40 (-23.08%)
Mutual labels:  gnome, gnome-shell

x11-fractional-display-scaling

Script and instructions to get fractional display scaling working nicely on Linux distros using X11 (i.e. X.Org).

Many people are having issues with high (arguably medium) resolution screens and Linux. Some distros only have hidden settings, some only have integer scaling (x2, 4x), some have fractional scaling but it's garbage.

This technique uses an (I think) X11-specific workaround with xrandr to make everything a comfortable size. It sets scaling to 2x, making everything massive, and then shrinks it back down again to 1.5x or whatever you want by "zooming out". It was originally written for Ubuntu 17.10. It should work for any Linux distro with an X11 display server, but might need tweaking for not-Ubuntu or not-Gnome.

How to

  1. Download display_scale.sh and put it somewhere like your documents folder.

  2. If you're not sure what display server's running:

    $ echo $XDG_SESSION_TYPE
    
  3. If you're on Wayland on Ubuntu it's easy to switch to X11. Open up this config file with whatever text editor.

    $ sudo nano /etc/gdm3/custom.conf
    

    and remove the '#' that comments out this line:

    #WaylandEnable=false
    

    If you can't find that file, try looking in /etc/gdm/

  4. Get X11 up by re-loging-in or ALT+F2 then r then enter.

  5. Set Gnomes display scaling to 2x. This makes everything really big.

    $ gsettings set org.gnome.desktop.interface scaling-factor 2
    
  6. Run display_scale.sh. Try different sizes with the number at the end. 1 is what you have right now (big), 2 is the same size you had before setting 2x display scaling in the last step (but at 2x render scale so it'll look fancier and use more resources).

    $ ./Documents/display_scale.sh 1.5
    
  7. Get the script running at startup. In Ubuntu it's easiest with 'Startup Application Preferences'. In the command text field put in this, with the number you decided upon earlier (or none if you're happy with 1.5x):

    /home/your-username/Documents/display_scale.sh
    

Q/A

What's display_scale_fix for / HELP! Sometimes everything goes tiny!

When I (burntcustard) open my laptop lid (not when I suspend, reboot, or close the lid... literally when it opens), scaling breaks.

display_scale_fix.sh runs display_scale.sh twice, first to set it to 1, and then whatever number you specify. It's helping me out for now, but I hope there's a better way someone can find, or it automagically gets fixed. I have the script set to a keyboard shortcut with the command:

bash /home/your-username/Documents/display_scale_fix.sh

Why not just run "xrandr --output eDP-1 --scale 1.5x1.5 --panning 2880x1620" at startup?

a) That requires some fiddling to figure out what the name of the display is.

b) That needs some calculatoring to try out different panning numbers.

c) Ain't nobody got time for dat.

Using display_scale.sh with >2 doesn't work!

If you're determined you want to do >2 (be warned, larger scales use exponentially more resources), you need to redo step 4 and set the org.gnome.desktop.interface scaling factor to 4 or 8.

Does this work for multiple screens?

Short answer: No.

Long answer: No, the script won't work, but if you look inside it, you should be able to figure out what it's doing and might be able to apply similar techniques with multiple screens. However... you're likely better off waiting until Waylands scaling has been improved, or dare I say it... use Win10 or OS X because they have much better multi-display scaling options.

What's X11 / X.Org, I confuse?

X.Org is a display server that implements the ancient X11 display server protocol. For more info: https://en.wikipedia.org/wiki/Display_server#X11

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].