From 43b514f40d060346a0bb21e80ccabc6a485e5f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Thu, 26 Feb 2015 13:10:15 +0100 Subject: Make better readable tests --- autodetect.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autodetect.sh b/autodetect.sh index 083042d..4b9601f 100755 --- a/autodetect.sh +++ b/autodetect.sh @@ -69,10 +69,10 @@ if [ "$COMMAND" = "external" -a "$EXT1_STATUS" = "connected" ]; then elif [ "$COMMAND" = "note" -a "$NOTE_STATUS" = "connected" ]; then xrandr --dpi "$DPI" $(off_except "$NOTE_NAME") --output "$NOTE_NAME" --mode "$NOTE_MAX" -elif [ "$EXT2_STATUS" = "disconnected" -a "$NOTE_STATUS" = "connected" -a "$EXT1_STATUS" = "connected" ]; then +elif [ "$EXT1_STATUS" = "connected" -a "$NOTE_STATUS" = "connected" -a "$EXT2_STATUS" = "disconnected" ]; then 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 +elif [ "$EXT1_STATUS" = "connected" -a "$NOTE_STATUS" = "connected" -a "$EXT2_STATUS" = "connected" ]; then # This isn't one command, because there is some weird error in xrandr. # That is the only way that this thing works. xrandr --dpi "$DPI" $(off_except "$NOTE_NAME" "$EXT1_NAME" "$EXT2_NAME") -- cgit v1.2.3