From a6e17b06570c9016aaf407843bc40b8866a95b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Wed, 4 Mar 2015 00:20:13 +0100 Subject: Add 2 more commands --- autodetect.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- cgit v1.2.3