diff options
Diffstat (limited to 'autodetect.sh')
-rwxr-xr-x | autodetect.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/autodetect.sh b/autodetect.sh index 478fb0c..c5867fb 100755 --- a/autodetect.sh +++ b/autodetect.sh @@ -70,7 +70,10 @@ elif [ "$EXT2_STATUS" = "disconnected" -a "$NOTE_STATUS" = "connected" -a "$EXT1 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 - xrandr --dpi "$DPI" --output "$NOTE_NAME" --mode "$NOTE_MAX" --output "$EXT1_NAME" --mode "$EXT1_MAX" --left-of "$NOTE_NAME" --output "$EXT2_NAME" --mode "$EXT2_MAX" --left-of "$EXT1_NAME" + xrandr --dpi "$DPI" $(rest_off) + xrandr --dpi "$DPI" --output "$NOTE_NAME" --mode "$NOTE_MAX" + xrandr --dpi "$DPI" --output "$EXT1_NAME" --mode "$EXT1_MAX" --left-of "$NOTE_NAME" + 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 |