From c4022d84f9ef84443abb0a22a2fdc350c324b27e Mon Sep 17 00:00:00 2001 From: Mathis Date: Tue, 21 Jan 2020 10:39:32 +0100 Subject: [PATCH] Change monitor setup script --- bin/xrandr/monitor_setup.sh | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/bin/xrandr/monitor_setup.sh b/bin/xrandr/monitor_setup.sh index dd46c79..7510d9c 100755 --- a/bin/xrandr/monitor_setup.sh +++ b/bin/xrandr/monitor_setup.sh @@ -1,24 +1,7 @@ #!/bin/bash -intern=eDP-1 -extern=HDMI-1 +left=DP-1-2-2 +middle=DP-1-2-3 +right=eDP-1 -case $1 in - "single") - if xrandr | grep "$extern disconnected"; then - xrandr --output "$extern" --off --output "$intern" --auto - else - xrandr --output "$intern" --off --output "$extern" --auto - fi - ;; - "dual") - if xrandr | grep "$extern disconnected"; then - xrandr --output "$extern" --off --output "$intern" --auto - else - xrandr --output $extern --primary - xrandr --output $extern --left-of $intern - fi - ;; -esac - -i3-msg restart +xrandr --output "$middle" --auto --primary && xrandr --output "$left" --auto --left-of "$middle" && xrandr --output "$right" --auto --right-of "$middle"