diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2015-02-26 13:08:24 +0100 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2015-02-26 13:09:46 +0100 |
commit | 78203a661f0876d5adafa22a558761c0fa4f41ab (patch) | |
tree | a72ade60ebe88437ee7999c80e5c4a6f4ef3f412 | |
parent | Unify API of the functions (diff) | |
download | display_autoset-78203a661f0876d5adafa22a558761c0fa4f41ab.tar.xz |
Remove some duplicate profiles
If is just one display connected, it is always EXT1
-rwxr-xr-x | autodetect.sh | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/autodetect.sh b/autodetect.sh index f37575a..083042d 100755 --- a/autodetect.sh +++ b/autodetect.sh @@ -66,15 +66,9 @@ 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" = "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" - elif [ "$EXT2_STATUS" = "disconnected" -a "$NOTE_STATUS" = "connected" -a "$EXT1_STATUS" = "connected" ]; then handle_non_exist_mode "$EXT1_NAME" "$NOTE_NAME" "$EXT1_MAX" "$NOTE_MAX" |