diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2015-03-27 19:22:27 +0100 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2015-03-27 19:22:27 +0100 |
commit | 0694d02a6eef7cf6dca2e798fd34d8f96ee2986f (patch) | |
tree | 1ded5e8f7fd5c805e59280eb96f536bcdc660e6e | |
parent | Move computing hash to function (diff) | |
download | display_autoset-0694d02a6eef7cf6dca2e798fd34d8f96ee2986f.tar.xz |
Add (again) profile command and fix none command
-rwxr-xr-x | autodetect.sh | 8 |
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 |