summaryrefslogtreecommitdiffstats
path: root/autodetect.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autodetect.sh')
-rwxr-xr-xautodetect.sh8
1 files changed, 7 insertions, 1 deletions
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