diff options
-rwxr-xr-x | autodetect.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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 |