1
0
Fork 0
forked from wry/wry

config: allow disabling color-management

This commit is contained in:
Julian Orth 2025-02-26 16:16:38 +01:00
parent c66f5798b7
commit 248eb324a5
24 changed files with 388 additions and 9 deletions

View file

@ -427,6 +427,17 @@
"type": "string",
"description": "A color.\n\nThe format should be one of the following:\n\n- `#rgb`\n- `#rrggbb`\n- `#rgba`\n- `#rrggbba`\n"
},
"ColorManagement": {
"description": "Describes color-management settings.\n\n- Example:\n\n ```toml\n [color-management]\n enabled = true\n ```\n",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Whether the color management protocol is enabled.\n\nThis has no effect on running applications.\n\nThe default is `false`.\n"
}
},
"required": []
},
"ComplexShortcut": {
"description": "Describes a complex shortcut.\n\n- Example:\n\n ```toml\n [complex-shortcuts.XF86AudioRaiseVolume]\n mod-mask = \"alt\"\n action = { type = \"exec\", exec = [\"pactl\", \"set-sink-volume\", \"0\", \"+10%\"] }\n ```\n",
"type": "object",
@ -597,6 +608,10 @@
"xwayland": {
"description": "Configures the Xwayland settings.\n\n- Example:\n\n ```toml\n xwayland = { scaling-mode = \"downscaled\" }\n ```\n",
"$ref": "#/$defs/Xwayland"
},
"color-management": {
"description": "Configures the color-management settings.\n\n- Example:\n\n ```toml\n [color-management]\n enabled = true\n ```\n",
"$ref": "#/$defs/ColorManagement"
}
},
"required": []

View file

@ -590,6 +590,33 @@ The format should be one of the following:
Values of this type should be strings.
<a name="types-ColorManagement"></a>
### `ColorManagement`
Describes color-management settings.
- Example:
```toml
[color-management]
enabled = true
```
Values of this type should be tables.
The table has the following fields:
- `enabled` (optional):
Whether the color management protocol is enabled.
This has no effect on running applications.
The default is `false`.
The value of this field should be a boolean.
<a name="types-ComplexShortcut"></a>
### `ComplexShortcut`
@ -1178,6 +1205,19 @@ The table has the following fields:
The value of this field should be a [Xwayland](#types-Xwayland).
- `color-management` (optional):
Configures the color-management settings.
- Example:
```toml
[color-management]
enabled = true
```
The value of this field should be a [ColorManagement](#types-ColorManagement).
<a name="types-Connector"></a>
### `Connector`

View file

@ -2286,6 +2286,18 @@ Config:
```toml
xwayland = { scaling-mode = "downscaled" }
```
color-management:
ref: ColorManagement
required: false
description: |
Configures the color-management settings.
- Example:
```toml
[color-management]
enabled = true
```
Idle:
@ -2727,3 +2739,26 @@ XScalingMode:
Additionally, this mode requires the X window to scale its contents itself. In the
example above, you might achieve this by setting the environment variable
`GDK_SCALE=2`.
ColorManagement:
kind: table
description: |
Describes color-management settings.
- Example:
```toml
[color-management]
enabled = true
```
fields:
enabled:
description: |
Whether the color management protocol is enabled.
This has no effect on running applications.
The default is `false`.
kind: boolean
required: false