From 7e8ce8a3e0b602186d6c209e029772f2f5e1531f Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Mon, 24 Feb 2020 18:31:37 -0700 Subject: [PATCH] updated for new monitor setup at work --- config/xserver/screenlayout/workdock.sh | 10 ++++--- config/xserver/screenlayout/workplus.sh | 39 ++++++++++++++++++++----- 2 files changed, 37 insertions(+), 12 deletions(-) diff --git a/config/xserver/screenlayout/workdock.sh b/config/xserver/screenlayout/workdock.sh index 84c29b2..1691d4c 100755 --- a/config/xserver/screenlayout/workdock.sh +++ b/config/xserver/screenlayout/workdock.sh @@ -1,21 +1,23 @@ #!/bin/sh if xrandr | grep -q "DP-0 connected"; then xrandr \ - --output DP-0 --mode 1920x1080 --pos 0x0 --rotate normal --scale 1.5x1.5 --primary\ + --output DP-0 --mode 1920x1080 --pos 0x0 --rotate left --scale 1.5x1.5 --primary\ --output DP-1 --off\ --output DP-2 --mode 2880x1800 --pos 5760x0 --rotate normal --scale 0.8x0.8\ --output DP-3 --off\ - --output DP-4 --mode 1920x1080 --pos 2880x0 --rotate normal --scale 1.5x1.5\ + --output DP-4 --mode 1920x1080 --pos 2880x0 --rotate right --scale 1.5x1.5\ --output HDMI-0 --off\ + --setmonitor BigBoi auto DP-0,DP-4\ ; else xrandr \ --output DP-0 --off\ --output HDMI-0 --off\ - --output DP-1 --mode 1920x1080 --pos 0x0 --rotate normal --scale 1.5x1.5 --primary\ + --output DP-1 --mode 1920x1080 --pos 0x0 --rotate left --scale 1.5x1.5 --primary\ --output DP-2 --mode 2880x1800 --pos 5760x0 --rotate normal --scale 0.8x0.8\ - --output DP-3 --mode 1920x1080 --pos 2880x0 --rotate normal --scale 1.5x1.5\ + --output DP-3 --mode 1920x1080 --pos 2880x0 --rotate right --scale 1.5x1.5\ --output DP-4 --off\ + --setmonitor BigBoi auto DP-1,DP-3\ ; fi diff --git a/config/xserver/screenlayout/workplus.sh b/config/xserver/screenlayout/workplus.sh index c149aaa..208f206 100755 --- a/config/xserver/screenlayout/workplus.sh +++ b/config/xserver/screenlayout/workplus.sh @@ -1,21 +1,44 @@ #!/bin/sh + + +# Positions +# MONITOR | ORIENTATION | POSITION +# ------------|-------------|---------- +# DP-1 / DP-0 | ANY | 0x0 +# DP-2 | DP-1/0:NORM | 5760x0 +# DP-2 | DP-1/0:LEFT | 3240x0 +# DP-3 / DP-4 | NORMAL | 2880x0 +# DP-3 / DP-4 | RIGHT | 1620x0 +# HDMI-0 | DP-1/0:NORM | 8640x0 +# HDMI-0 | DP-1/0:LEFT | 5533x0 + if xrandr | grep -q "DP-0 connected"; then xrandr \ - --output DP-0 --mode 1920x1080 --pos 0x0 --rotate normal --scale 1.5x1.5 --primary\ + --output DP-0 --mode 1920x1080 --scale 1.5x1.5 --primary\ + --pos 0x0 --rotate left\ --output DP-1 --off\ - --output DP-2 --mode 2880x1800 --pos 5760x0 --rotate normal --scale 0.8x0.8\ + --output DP-2 --mode 2880x1800--rotate normal --scale 0.8x0.8\ + --pos 3240x0\ --output DP-3 --off\ - --output DP-4 --mode 1920x1080 --pos 2880x0 --rotate normal --scale 1.5x1.5\ - --output HDMI-0 --mode 1920x1080 --pos 8640x0 --rotate left\ + --output DP-4 --mode 1920x1080 --scale 1.5x1.5\ + --pos 1620x0 --rotate right\ + --output HDMI-0 --mode 1920x1080 --rotate left\ + --pos 5544x0\ + --setmonitor BigBoi auto DP-0,DP-4\ ; else xrandr \ --output DP-0 --off\ - --output DP-1 --mode 1920x1080 --pos 0x0 --rotate normal --scale 1.5x1.5 --primary\ - --output DP-2 --mode 2880x1800 --pos 5760x0 --rotate normal --scale 0.8x0.8\ - --output DP-3 --mode 1920x1080 --pos 2880x0 --rotate normal --scale 1.5x1.5\ + --output DP-1 --mode 1920x1080 --scale 1.5x1.5 --primary\ + --pos 0x0 --rotate left\ + --output DP-2 --mode 2880x1800 --scale 0.8x0.8\ + --pos 3240x0 --rotate normal\ + --output DP-3 --mode 1920x1080 --scale 1.5x1.5\ + --pos 1620x0 --rotate right\ --output DP-4 --off\ - --output HDMI-0 --mode 1920x1080 --pos 8640x0 --rotate left\ + --output HDMI-0 --mode 1920x1080\ + --pos 5544x0 --rotate left\ + --setmonitor BigBoi auto DP-1,DP-3\ ; fi