removed existing profiles and fixed id to name

This commit is contained in:
2025-12-04 07:21:15 -07:00
parent 39d46fa9e1
commit b07d7f3b03
7 changed files with 9 additions and 6494 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
profiles/*.json
profiles/

View File

@@ -70,26 +70,26 @@ function load_profile_to_outputs {
priority=$(echo "$out" | jq -r '.priority')
# Mode (Resolution + refresh)
kscreen-doctor "output.$id.mode.$mode"
kscreen-doctor "output.$name.mode.$mode"
# Position
kscreen-doctor "output.$id.position.$posx,$posy"
kscreen-doctor "output.$name.position.$posx,$posy"
# Scale
kscreen-doctor "output.$id.scale.$scale"
kscreen-doctor "output.$name.scale.$scale"
# Rotation (map from JSON names to kscreen-doctor options)
case "$rotation" in
"1") kscreen-doctor "output.$id.rotation.normal" ;;
"2") kscreen-doctor "output.$id.rotation.left" ;;
"4") kscreen-doctor "output.$id.rotation.inverted" ;;
"8") kscreen-doctor "output.$id.rotation.right" ;;
"1") kscreen-doctor "output.$name.rotation.normal" ;;
"2") kscreen-doctor "output.$name.rotation.left" ;;
"4") kscreen-doctor "output.$name.rotation.inverted" ;;
"8") kscreen-doctor "output.$name.rotation.right" ;;
esac
# Primary / Not Primary
echo $priority
if [ $priority -eq 1 ]; then
kscreen-doctor "output.$id.primary"
kscreen-doctor "output.$name.primary"
fi
done <<< "$outputs"

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff