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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user