From 7da3fc8d9f9f375f115088782c1efe0144b46ca5 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Tue, 3 Oct 2017 09:39:05 +0100 Subject: [PATCH] scripts/4screens: make each display configurable --- scripts/4screens | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/4screens b/scripts/4screens index 6e1e8f8..849449e 100755 --- a/scripts/4screens +++ b/scripts/4screens @@ -1,9 +1,14 @@ #!/bin/sh set -e -xrandr --output DP-0.1 --primary --mode 1920x1080 --pos 0x1080 --rotate normal \ - --output DP-0.2.1 --mode 1920x1080 --pos 0x0 --rotate inverted \ - --output DP-0.2.2.1 --mode 1920x1080 --pos 1920x0 --rotate inverted \ - --output DP-0.2.2.2.1 --mode 1920x1080 --pos 1920x1080 --rotate normal +TOP_LEFT="HDMI-0" +TOP_RIGHT="DP-2.2.1" +BOTTOM_LEFT="DVI-D-0" +BOTTOM_RIGHT="DP-2.1" + +xrandr --output $BOTTOM_LEFT --primary --mode 1920x1080 --pos 0x1080 --rotate normal \ + --output $TOP_LEFT --mode 1920x1080 --pos 0x0 --rotate inverted \ + --output $TOP_RIGHT --mode 1920x1080 --pos 1920x0 --rotate inverted \ + --output $BOTTOM_RIGHT --mode 1920x1080 --pos 1920x1080 --rotate normal [ -e ~/.fehbg ] && ~/.fehbg