diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2015-07-02 11:01:50 +0200 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2015-07-02 11:01:50 +0200 |
commit | 618bd6b82583d8e06e600c1130d555fd2ac3c65a (patch) | |
tree | 2aaf3f0a4892f5109139a82f453545c9e85a55e9 /autodetect.sh | |
parent | Make sure that $SAVEPATH exists (diff) | |
download | display_autoset-618bd6b82583d8e06e600c1130d555fd2ac3c65a.tar.xz |
Add 2displays command
Diffstat (limited to 'autodetect.sh')
-rwxr-xr-x | autodetect.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/autodetect.sh b/autodetect.sh index d05bfd4..dcef6ed 100755 --- a/autodetect.sh +++ b/autodetect.sh @@ -123,6 +123,9 @@ elif [ "$COMMAND" = "2external" -a "$EXT1_STATUS" = "connected" -a "$EXT2_STATUS elif [ "$COMMAND" = "note" -a "$NOTE_STATUS" = "connected" ]; then xrandr --dpi "$DPI" $(off_except "$NOTE_NAME") --output "$NOTE_NAME" --mode "$NOTE_MAX" +elif [ "$COMMAND" = "2displays" -a "$EXT1_STATUS" = "connected" -a "$NOTE_STATUS" = "connected" ]; then + handle_non_exist_mode "$EXT1_NAME" "$NOTE_NAME" "$EXT1_MAX" "$NOTE_MAX" + 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" |