mirror of
https://github.com/phillipberndt/autorandr
synced 2024-12-18 12:24:45 +00:00
Add support for "preswitch" scripts
This commit is contained in:
parent
4f5e2401ef
commit
f1315852be
@ -178,6 +178,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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user