Skip to content

Instantly share code, notes, and snippets.

@jdf-id-au
Created March 11, 2020 21:45
Show Gist options
  • Save jdf-id-au/82c689dc33524f3a47c378b9a5850ec7 to your computer and use it in GitHub Desktop.
Save jdf-id-au/82c689dc33524f3a47c378b9a5850ec7 to your computer and use it in GitHub Desktop.
#!/bin/zsh
# For 1200x1900 lowdpi (portrait) monitor to right of xps15 9550 laptop 3840x2160 282dpi
# https://blog.summercat.com/configuring-mixed-dpi-monitors-with-xrandr.html
# requires `prime-select nvidia` and reboot!
# stupid HDMI-1 doesn't seem to respect scale with intel video
# xrandr --query
# 3840+(2*1080) x (2*1920) = 6000x3840
xrandr --fb 6000x3840 \
--output eDP-1-1 --scale 1x1 --primary \
--output HDMI-1-1 --scale 2x2 --rotate left --right-of eDP-1-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment