summaryrefslogtreecommitdiffstats
path: root/autodetect.sh
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2015-03-04 00:20:13 +0100
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2015-03-04 00:20:13 +0100
commita6e17b06570c9016aaf407843bc40b8866a95b49 (patch)
treefeb8784df0ef2e48313111ea2805405cda32f5c4 /autodetect.sh
parentMake better readable tests (diff)
downloaddisplay_autoset-a6e17b06570c9016aaf407843bc40b8866a95b49.tar.xz
Add 2 more commands
Diffstat (limited to 'autodetect.sh')
-rwxr-xr-xautodetect.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/autodetect.sh b/autodetect.sh
index 4b9601f..12fbcaa 100755
--- a/autodetect.sh
+++ b/autodetect.sh
@@ -66,6 +66,12 @@ EXT2_MAX="$(echo "$XRANDR" | get_resolution "$EXT2_NAME")"
if [ "$COMMAND" = "external" -a "$EXT1_STATUS" = "connected" ]; then
xrandr --dpi "$DPI" $(off_except "$EXT1_NAME") --output "$EXT1_NAME" --mode "$EXT1_MAX"
+elif [ "$COMMAND" = "external2" -a "$EXT2_STATUS" = "connected" ]; then
+ xrandr --dpi "$DPI" $(off_except "$EXT2_NAME") --output "$EXT2_NAME" --mode "$EXT2_MAX"
+
+elif [ "$COMMAND" = "2external" -a "$EXT1_STATUS" = "connected" -a "$EXT2_STATUS" = "connected" ]; then
+ handle_non_exist_mode "$EXT2_NAME" "$EXT1_NAME" "$EXT2_MAX" "$EXT1_MAX"
+
elif [ "$COMMAND" = "note" -a "$NOTE_STATUS" = "connected" ]; then
xrandr --dpi "$DPI" $(off_except "$NOTE_NAME") --output "$NOTE_NAME" --mode "$NOTE_MAX"