working recognition of enabled/disabled outputs

This commit is contained in:
Dawson Matthews
2025-12-04 06:55:51 -07:00
parent 9e990cf58d
commit 4bbe14f8f2

View File

@@ -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"
`
} }