~kris/dots

srice

ref: e98f3b030dc24445bd55c68d95d2d81933fd68b3 srice/.screenlayout/main.sh -rw-r--r-- 841 bytes
e98f3b03 — Kris Yotam chore: sync local state after restore (push updates, no pull) a month 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