DEFAULT_PROFILE=""
SAVE_PROFILE=""
-FP_METHODS="setup_fp_xrandr_edid setup_fp_sysfs_edid"
+FP_METHODS="setup_fp_sysfs_edid setup_fp_xrandr_edid"
CURRENT_CFG_METHOD="current_cfg_xrandr"
LOAD_METHOD="load_cfg_xrandr"
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"