summaryrefslogtreecommitdiffstats
path: root/autodetect.sh
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2015-02-22 19:57:51 +0100
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2015-02-22 19:57:51 +0100
commite6cfda78efc2e94a9512b0f7ae637b7b40256b4d (patch)
tree18d7572b46f4bc7e6a598a1df03a29ac82bfffb5 /autodetect.sh
parentFix regexp (diff)
downloaddisplay_autoset-e6cfda78efc2e94a9512b0f7ae637b7b40256b4d.tar.xz
Fix 3 displays command
Diffstat (limited to 'autodetect.sh')
-rwxr-xr-xautodetect.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/autodetect.sh b/autodetect.sh
index 478fb0c..c5867fb 100755
--- a/autodetect.sh
+++ b/autodetect.sh
@@ -70,7 +70,10 @@ elif [ "$EXT2_STATUS" = "disconnected" -a "$NOTE_STATUS" = "connected" -a "$EXT1
handle_non_exist_mode "$EXT1_NAME" "$NOTE_NAME" "$EXT1_MAX" "$NOTE_MAX"
elif [ "$EXT2_STATUS" = "connected" -a "$NOTE_STATUS" = "connected" -a "$EXT1_STATUS" = "connected" ]; then
- xrandr --dpi "$DPI" --output "$NOTE_NAME" --mode "$NOTE_MAX" --output "$EXT1_NAME" --mode "$EXT1_MAX" --left-of "$NOTE_NAME" --output "$EXT2_NAME" --mode "$EXT2_MAX" --left-of "$EXT1_NAME"
+ xrandr --dpi "$DPI" $(rest_off)
+ xrandr --dpi "$DPI" --output "$NOTE_NAME" --mode "$NOTE_MAX"
+ xrandr --dpi "$DPI" --output "$EXT1_NAME" --mode "$EXT1_MAX" --left-of "$NOTE_NAME"
+ xrandr --dpi "$DPI" --output "$EXT2_NAME" --mode "$EXT2_MAX" --left-of "$EXT1_NAME"
elif [ "$EXT2_STATUS" = "disconnected" -a "$NOTE_STATUS" = "connected" -a "$EXT1_STATUS" = "disconnected" ]; then
~/bin/dnote.sh