summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2015-03-21 13:19:54 +0100
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2015-03-21 13:19:54 +0100
commitfe23d0059b608a3f8a5de1c7bbfe11d90b322611 (patch)
tree0327fd2ac177efbcbfb7711a9b852e862cc0b1dc
parentAdd support for mirror mode (diff)
downloaddisplay_autoset-fe23d0059b608a3f8a5de1c7bbfe11d90b322611.tar.xz
Add "none" command
It is useful when you are implementing some kind of "reset operation".
-rwxr-xr-xautodetect.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/autodetect.sh b/autodetect.sh
index bf69c79..5b0006f 100755
--- a/autodetect.sh
+++ b/autodetect.sh
@@ -85,6 +85,10 @@ 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" = "none" ]; then
+ # String "killthemall" should be something that is NOT real screen name
+ xrandr $(off_except "killthemall") --output "$NOTE_NAME" --mode "$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"