Skip to content

Instantly share code, notes, and snippets.

@pointhi
pointhi / extend.sh
Last active November 7, 2017 14:36 — forked from wvengen/extend.sh
Extend non-HiDPI external display left to HiDPI internal display
#!/bin/sh
# extend non-HiDPI external display on DP* on the left side of the HiDPI internal display eDP*
#
# run the script a second time if you get an error like:
# xrandr: specified screen 6400x2160 not large enough for output HDMI1 (5120x2880+0+0)
#
# see also https://wiki.archlinux.org/index.php/HiDPI
# you may run into https://bugs.freedesktop.org/show_bug.cgi?id=39949
# https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/883319