Skip to content

Instantly share code, notes, and snippets.

@francium
Created February 10, 2019 18:21
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 francium/d93bcf75884ebeea216cc04cee0e2b9d to your computer and use it in GitHub Desktop.
Save francium/d93bcf75884ebeea216cc04cee0e2b9d to your computer and use it in GitHub Desktop.
xrandr scripts to configure fractional scaling and multi-monitors setups (work in X only)
#!/bin/bash
# Builtin display (1440p)
xrandr --output eDP-1 --fb 3840-x2160 --auto --scale 1.5x1.5
-------------------------------------------------------------
#!/bin/bash
# Dual monitor (dual external 1080p)
xrandr --output HDMI-1 --auto --scale 1x1 \
--output HDMI-2 --auto --scale 1x1 --post 1920x0
-------------------------------------------------------------
#!/bin/bash
# Triple (builtin 1440p + 2x 1080p external)
xrandr --output eDP-1 --fb 5760x1080 --mode 1920x1080 --scale 1x1 \
--output DP-1 --scale 1x1 --post 1920x0 \
--output HDMI-2 --post 3840-0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment