You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| background | CSS color ||| background color (default when no color code is applied), must have alpha channel (#rrggbbaa) if you want the terminal to be transparent |
175
175
| cursorAccent | CSS color ||| color for cursor |
176
176
| selectionBackground | CSS color ||| background color for selected text |
177
-
178
-
## Presets
179
-
180
-
Presets can be used to apply multiple setting overrides to either a tab or a block. They are currently supported in two scenarios: tab backgrounds and AI models.
181
-
182
-
You can set presets either by placing them in `~/.config/waveterm/presets.json` or by placing them in a JSON file in the `~/.config/waveterm/presets/` directory. All presets will be aggregated regardless of which file they're placed in so you can use the `presets` directory to organize them as you see fit.
A complete example of a preset for an AI model is the following:
215
-
216
-
```json
217
-
{
218
-
"ai@wave": {
219
-
"display:name": "Ollama - llama3.1",
220
-
"display:order": 0,
221
-
"ai:baseurl": "http://localhost:11434",
222
-
"ai:model": "llama3.1:latest"
223
-
}
224
-
}
225
-
```
226
-
227
-
### Preset type
228
-
229
-
The type of the preset determines where it can be discovered in the app. Currently, the two types that will be discovered in the app are `bg` and `ai`.
230
-
231
-
`bg` will be served in the "Backgrounds" submenu of the Tab context menu (which can be found by right-clicking on a tab).
232
-
233
-

234
-
235
-
`ai` will be served in the models dropdown in the block header of the "Wave AI" widget.
236
-
237
-

238
-
239
-
### Available configuration keys
240
-
241
-
The following configuration keys are available for use in presets:
| bg:opacity | float | the opacity of the background |
263
-
| bg:blendmode | string | the [blend mode](https://developer.mozilla.org/en-US/docs/Web/CSS/blend-mode) of the background |
264
-
| bg:bordercolor | string | the color of the border |
265
-
| bg:activebordercolor | string | the color of the border when a block is active |
266
-
267
-
#### Clear key
268
-
269
-
Configs in a preset are applied in order to override the default config values, which will persist for the remainder of the tab or block's lifetime. Setting `bg:*` or `ai:*` to `"true"` will clear the values of any previously overridden Background or AI configurations, respectively, setting them back to their defaults.
270
-
271
-
#### Unset a default value
272
-
273
-
To unset a default value in a preset, add an override that sets it to an empty string, like `""`.
Presets can be used to apply multiple setting overrides at once to either a tab or a block. They are currently supported in two scenarios: tab backgrounds and AI models.
8
+
9
+
You can set presets either by placing them in `~/.config/waveterm/presets.json` or by placing them in a JSON file in the `~/.config/waveterm/presets/` directory. All presets will be aggregated regardless of which file they're placed in so you can use the `presets` directory to organize them as you see fit.
A complete example of a preset for an AI model is the following:
42
+
43
+
```json
44
+
{
45
+
"ai@wave": {
46
+
"display:name": "Ollama - llama3.1",
47
+
"display:order": 0,
48
+
"ai:baseurl": "http://localhost:11434",
49
+
"ai:model": "llama3.1:latest"
50
+
}
51
+
}
52
+
```
53
+
54
+
### Preset type
55
+
56
+
The type of the preset determines where it can be discovered in the app. Currently, the two types that will be discovered in the app are `bg` and `ai`.
57
+
58
+
`bg` will be served in the "Backgrounds" submenu of the Tab context menu (which can be found by right-clicking on a tab).
59
+
60
+

61
+
62
+
`ai` will be served in the models dropdown in the block header of the "Wave AI" widget.
63
+
64
+

65
+
66
+
### Available configuration keys
67
+
68
+
The following configuration keys are available for use in presets:
| bg:opacity | float | the opacity of the background |
97
+
| bg:blendmode | string | the [blend mode](https://developer.mozilla.org/en-US/docs/Web/CSS/blend-mode) of the background |
98
+
| bg:bordercolor | string | the color of the border |
99
+
| bg:activebordercolor | string | the color of the border when a block is active |
100
+
101
+
#### Clear key
102
+
103
+
Configs in a preset are applied in order to override the default config values, which will persist for the remainder of the tab or block's lifetime. Setting `bg:*` or `ai:*` to `"true"` will clear the values of any previously overridden Background or AI configurations, respectively, setting them back to their defaults.
104
+
105
+
#### Unset a default value
106
+
107
+
To unset a default value in a preset, add an override that sets it to an empty string, like `""`.
0 commit comments