working recognition of enabled/disabled outputs
This commit is contained in:
@@ -26,12 +26,12 @@ if ! command -v kscreen-doctor &>/dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Extract outputs list
|
# Extract outputs list
|
||||||
enabled_outputs=$(jq -c '.outputs[] | select(.enabled=="true")' "$PROFILE")
|
enabled_outputs=$(jq -c '.outputs[] | select(.enabled == true)' "$PROFILE")
|
||||||
echo "enabled:"
|
echo "enabled:"
|
||||||
echo $enabled_outputs
|
echo $enabled_outputs
|
||||||
disabled_outputs=$(jq -c '.outputs[] | select(.enabled=="false")' "$PROFILE")
|
disabled_outputs=$(jq -c '.outputs[] | select(.enabled == false)' "$PROFILE")
|
||||||
echo "disabled:"
|
echo "disabled:"
|
||||||
echo $dis
|
echo $disabled_outputs
|
||||||
outputs=$(jq -c '.outputs[]' "$PROFILE")
|
outputs=$(jq -c '.outputs[]' "$PROFILE")
|
||||||
|
|
||||||
# Restore enabled/disabled starting with the enabled monitors
|
# Restore enabled/disabled starting with the enabled monitors
|
||||||
@@ -90,7 +90,6 @@ function load_profile_to_outputs {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
done <<< "$outputs"
|
done <<< "$outputs"
|
||||||
`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user