summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"