From ba2a0da0af233b0441b402888915f65428fb3d77 Mon Sep 17 00:00:00 2001 From: Ayo Date: Tue, 26 Aug 2025 10:12:02 +0200 Subject: [PATCH] feat(display): dual monitor modes (right, left, center) --- display.sh | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/display.sh b/display.sh index 8f9c64d..91cfa6e 100755 --- a/display.sh +++ b/display.sh @@ -25,13 +25,29 @@ function main() { echo "Listing all monitors" xrandr --listmonitors ;; - "dual") - echo "Setting dual display mode" + "dual"|"right") + echo "Setting dual display right" xrandr --output "$extern" --primary --auto --left-of "$intern" --output "$intern" --mode 1680x1050 ;; + "left") + echo "Setting dual display left" + xrandr --output "$extern" --primary --auto --right-of "$intern" --output "$intern" --mode 1680x1050 + ;; + "center") + echo "Setting dual display center" + xrandr \ + --output "$extern" --auto --above "$intern" \ + --output "$intern" --primary --auto + ;; + "ultra") + echo "Setting single display mode (ultrawide)" + xrandr --output "$intern" --off \ + --output "$extern" --auto + ;; "solo") echo "Setting single display mode (internal only)" - xrandr --output "$extern" --off --output "$intern" --auto + xrandr --output "$extern" --off \ + --output "$intern" --auto ;; *) echo "Setting display to preferred size (1680x1050)"