From fe23d0059b608a3f8a5de1c7bbfe11d90b322611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Sat, 21 Mar 2015 13:19:54 +0100 Subject: Add "none" command It is useful when you are implementing some kind of "reset operation". --- autodetect.sh | 4 ++++ 1 file changed, 4 insertions(+) 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" -- cgit v1.2.3