summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2015-02-22 20:18:57 +0100
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2015-02-22 20:18:57 +0100
commit8abc3b3b364eba34a7e39b1254baae0082e8a388 (patch)
treed69f0522ae635d99f90bee1b14388fe2f25d1118
parentFix detection of unnecessary displays (diff)
downloaddisplay_autoset-8abc3b3b364eba34a7e39b1254baae0082e8a388.tar.xz
Provide ability to set notebook display only
-rwxr-xr-xautodetect.sh5
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