removed existing profiles and fixed id to name
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user