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