summaryrefslogtreecommitdiffstats
path: root/autodetect.sh
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2015-03-27 19:22:27 +0100
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2015-03-27 19:22:27 +0100
commit0694d02a6eef7cf6dca2e798fd34d8f96ee2986f (patch)
tree1ded5e8f7fd5c805e59280eb96f536bcdc660e6e /autodetect.sh
parentMove computing hash to function (diff)
downloaddisplay_autoset-0694d02a6eef7cf6dca2e798fd34d8f96ee2986f.tar.xz
Add (again) profile command and fix none command
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