From 8abc3b3b364eba34a7e39b1254baae0082e8a388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Sun, 22 Feb 2015 20:18:57 +0100 Subject: Provide ability to set notebook display only --- autodetect.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autodetect.sh b/autodetect.sh index 6b95d0f..4a5b549 100755 --- a/autodetect.sh +++ b/autodetect.sh @@ -66,6 +66,9 @@ if [ "$COMMAND" = "external" -a "$EXT1_STATUS" = "connected" ]; then elif [ "$COMMAND" = "external" -a "$EXT2_STATUS" = "connected" ]; then xrandr --dpi "$DPI" $(off_except "$EXT2_NAME") --output "$EXT2_NAME" --mode "$EXT2_MAX" +elif [ "$COMMAND" = "note" -a "$NOTE_STATUS" = "connected" ]; then + xrandr --dpi "$DPI" $(off_except "$NOTE_NAME") --output "$NOTE_NAME" --mode "$NOTE_MAX" + elif [ "$EXT2_STATUS" = "connected" -a "$NOTE_STATUS" = "connected" -a "$EXT1_STATUS" = "disconnected" ]; then handle_non_exist_mode "$EXT2_NAME" "$NOTE_NAME" "$EXT2_MAX" "$NOTE_MAX" @@ -79,6 +82,6 @@ elif [ "$EXT2_STATUS" = "connected" -a "$NOTE_STATUS" = "connected" -a "$EXT1_ST 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 + xrandr --dpi "$DPI" $(off_except "$NOTE_NAME") --output "$NOTE_NAME" --mode "$NOTE_MAX" fi -- cgit v1.2.3