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

3
.gitignore vendored
View File

@@ -1 +1,2 @@
profiles/ profiles/
*.json

30
all_attributes.md Normal file
View File

@@ -0,0 +1,30 @@
# All Kscreen Doctor attributes
- [x] primary
- [ ] priority
- [x] enable
- [x] disable
- [x] mode
- [x] position
- [x] scale
- [x] orientation / rotation
- [ ] overscan (0-100)
- [ ] vrrpolicy (never / always / automatic)
- [ ] rgbrange (automatic / full / limited)
- [ ] hdr (enable / disable / toggle)
- [ ] sdr-brightness (50-10000)
- [ ] wcg (enable / disable / toggle)
- [ ] iccprofile (path)
- [ ] sdrGamut (0-100)
- [ ] maxBrightnessOverride (disable / int)
- [ ] maxAverageBrightnessOverride (disable / int)
- [ ] minBrightnessOverride (disable / int)
- [ ] colorProfileSource (sRBG / ICC / EDID)
- [ ] brightness (0-100)
- [ ] colorPowerTradeoff (preferEfficiency / preferAccuracy)
- [ ] dimming (0-100)
- [ ] mirror ( none / output )
- [ ] ddcCi (allow / disallow)
- [ ] maxbpc (automatic / 6-16)
- [ ] edrPolicy (never / always)
- [ ] sharpness (0 - 100)

View File

@@ -93,10 +93,18 @@ function load_profile_to_outputs {
height=$(echo "$out" | jq -r ".modes[] | select(.id == \"$mode_id\") | .size.height") height=$(echo "$out" | jq -r ".modes[] | select(.id == \"$mode_id\") | .size.height")
width=$(echo "$out" | jq -r ".modes[] | select(.id == \"$mode_id\") | .size.width") width=$(echo "$out" | jq -r ".modes[] | select(.id == \"$mode_id\") | .size.width")
mode="${width}x${height}@${refresh_rate}" 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" log "[VAR] mode: $mode"
priority=$(echo "$out" | jq -r '.priority') priority=$(echo "$out" | jq -r '.priority')
#
# Mode (Resolution + refresh) # Mode (Resolution + refresh)
# CMD="kscreen-doctor output.$name.mode.$mode" # CMD="kscreen-doctor output.$name.mode.$mode"
CMD="kscreen-doctor output.$name.mode.$mode" CMD="kscreen-doctor output.$name.mode.$mode"