]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - autorandr
Merge branch 'feature/preswitch_scripts' of http://github.com/torrancew/autorandr
[deb_pkgs/autorandr.git] / autorandr
index 90f63ec09e509799325252b2541fd1f3fb741ae1..fbf17a14699bb96989ebc3587db2c7477779b1a7 100755 (executable)
--- a/autorandr
+++ b/autorandr
@@ -206,6 +206,11 @@ load() {
        local PROFILE="$1"
        local CONF="$PROFILES/$PROFILE/config"
        if [ -e "$CONF" ] ; then
+    [ -x "$PROFILES/preswitch" ] && \
+      "$PROFILES/preswitch" "$PROFILE"
+    [ -x "$PROFILES/$PROFILE/preswitch" ] && \
+      "$PROFILES/$PROFILE/preswitch" "$PROFILE"
+
                echo " -> loading profile $PROFILE"
                $LOAD_METHOD "$CONF"