removed existing profiles and fixed id to name
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1 @@
|
|||||||
profiles/*.json
|
profiles/
|
||||||
@@ -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"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1297
profiles/tv.json
1297
profiles/tv.json
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user