From 0694d02a6eef7cf6dca2e798fd34d8f96ee2986f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Fri, 27 Mar 2015 19:22:27 +0100 Subject: Add (again) profile command and fix none command --- autodetect.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/autodetect.sh b/autodetect.sh index 8ed8efb..4ea010c 100755 --- a/autodetect.sh +++ b/autodetect.sh @@ -94,9 +94,15 @@ fi ## Main "profiles" logic ## Start with some special command -if [ "$COMMAND" = "none" ]; then +if [ "$COMMAND" = "profile" ]; then + HASH="$(compute_hash "$XRANDR")" + echo "$HASH" + exit 0 + +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" + exit 0 ## And "regular" display setting commands elif [ "$COMMAND" = "external" -a "$EXT1_STATUS" = "connected" ]; then -- cgit v1.2.3