added a list of all kscreen attributes that could be added. not all are recorded in the json generated by kscreen-doctor though. need to find another way to get those values.

This commit is contained in:
Dawson Matthews
2025-12-05 14:25:25 -07:00
parent 5490b665f3
commit bc15980ba5
3 changed files with 41 additions and 2 deletions

View File

@@ -93,10 +93,18 @@ function load_profile_to_outputs {
height=$(echo "$out" | jq -r ".modes[] | select(.id == \"$mode_id\") | .size.height")
width=$(echo "$out" | jq -r ".modes[] | select(.id == \"$mode_id\") | .size.width")
mode="${width}x${height}@${refresh_rate}"
replication_source_id=$(echo "$out" | jq -r ".replicationSource")
log "[VAR] replication_source_id: $replication_source_id"
if [ $replication_source_id -neq 0 ]; then
replication_source_name=$(echo "$outputs.[] | select(.id == \"$replication_source_id\" | .name)" )
log "[VAR] replication_source_name: $replication_source_name"
CMD="kscreen-doctor output.$"
done
log "[VAR] mode: $mode"
priority=$(echo "$out" | jq -r '.priority')
#
# Mode (Resolution + refresh)
# CMD="kscreen-doctor output.$name.mode.$mode"
CMD="kscreen-doctor output.$name.mode.$mode"