~kris/dots

srice

ref: 9b4572416de8a234ffd5ebaaaa549a930b3e2041 srice/.screenlayout/main.sh -rwxr-xr-x 841 bytes
9b457241 — Kris Yotam wip: emergency backup (power outage risk) 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# Monitor Layout Configuration
#
# DisplayPort-0 = TOP monitor (TV, above all)
# DisplayPort-1 = CENTER/PRIMARY monitor (1440p)
# HDMI-A-0     = LEFT monitor (portrait/rotated left, bar inward)
# DisplayPort-2 = RIGHT monitor (portrait/rotated right, bar inward)

# First ensure DisplayPort-1 has modes (workaround for EDID detection issue)
xrandr --newmode "1920x1080_60" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync 2>/dev/null
xrandr --addmode DisplayPort-1 "1920x1080_60" 2>/dev/null

xrandr \
    --output DisplayPort-0 --mode 1920x1080 --pos 1400x0 --rotate normal \
    --output DisplayPort-1 --primary --mode 2560x1440 --rate 59.95 --pos 1080x1080 --rotate normal \
    --output HDMI-A-0 --mode 1920x1080 --pos 0x840 --rotate left \
    --output DisplayPort-2 --mode 1920x1080 --pos 3640x840 --rotate right