Skip to content

Commit 26988f5

Browse files
authored
Merge pull request #643 from mahkoh/jorth/yaml-cleanup
toml: format spec.yaml file
2 parents fbd37e6 + a7808d8 commit 26988f5

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

toml-spec/spec/spec.generated.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@
816816
"properties": {
817817
"mod-mask": {
818818
"type": "string",
819-
"description": "The mod mask to apply to this shortcut.\n\nShould be a string containing modifiers concatenated by `-`. See the description\nof `Config.shortcuts` for more details.\n\nIf this field is omitted, all modifiers are included in the mask.\n\n- Example:\n \n To raise the volume whenever the XF86AudioRaiseVolume key is pressed regardless\n of any modifiers except `alt`:\n\n ```toml\n [complex-shortcuts.XF86AudioRaiseVolume]\n mod-mask = \"alt\"\n action = { type = \"exec\", exec = [\"pactl\", \"set-sink-volume\", \"0\", \"+10%\"] }\n ```\n\n Set `mod-mask = \"\"` to ignore all modifiers.\n"
819+
"description": "The mod mask to apply to this shortcut.\n\nShould be a string containing modifiers concatenated by `-`. See the description\nof `Config.shortcuts` for more details.\n\nIf this field is omitted, all modifiers are included in the mask.\n\n- Example:\n\n To raise the volume whenever the XF86AudioRaiseVolume key is pressed regardless\n of any modifiers except `alt`:\n\n ```toml\n [complex-shortcuts.XF86AudioRaiseVolume]\n mod-mask = \"alt\"\n action = { type = \"exec\", exec = [\"pactl\", \"set-sink-volume\", \"0\", \"+10%\"] }\n ```\n\n Set `mod-mask = \"\"` to ignore all modifiers.\n"
820820
},
821821
"action": {
822822
"description": "The action to execute.\n\nOmitting this is the same as setting it to `\"none\"`.\n",
@@ -838,7 +838,7 @@
838838
"$ref": "#/$defs/Keymap"
839839
},
840840
"repeat-rate": {
841-
"description": "The keyboard repeat rate.\n\n- Example:\n \n ```toml\n repeat-rate = { rate = 25, delay = 250 }\n ```\n",
841+
"description": "The keyboard repeat rate.\n\n- Example:\n\n ```toml\n repeat-rate = { rate = 25, delay = 250 }\n ```\n",
842842
"$ref": "#/$defs/RepeatRate"
843843
},
844844
"shortcuts": {
@@ -962,7 +962,7 @@
962962
"description": "Configures a key that will enable window management mode while pressed.\n\nIn window management mode, floating windows can be moved by pressing the left\nmouse button and all windows can be resize by pressing the right mouse button.\n\n- Example:\n\n ```toml\n window-management-key = \"Alt_L\"\n ```\n"
963963
},
964964
"vrr": {
965-
"description": "Configures the default VRR settings.\n\nThis can be overwritten for individual outputs.\n\nBy default, the VRR mode is `never` and the cursor refresh rate is unbounded.\n\n- Example:\n \n ```toml\n vrr = { mode = \"always\", cursor-hz = 90 }\n ```\n",
965+
"description": "Configures the default VRR settings.\n\nThis can be overwritten for individual outputs.\n\nBy default, the VRR mode is `never` and the cursor refresh rate is unbounded.\n\n- Example:\n\n ```toml\n vrr = { mode = \"always\", cursor-hz = 90 }\n ```\n",
966966
"$ref": "#/$defs/Vrr"
967967
},
968968
"tearing": {
@@ -1219,7 +1219,7 @@
12191219
}
12201220
},
12211221
{
1222-
"description": "The name, arguments, and environment variables of the executable to execute.\n\nExactly one of the `prog` or `shell` fields must be specified.\n\n- Example 1:\n\n ```toml\n [shortcuts]\n ctrl-a = { type = \"exec\", exec = { prog = \"notify-send\", args = [\"hello world\"], env.WAYLAND_DISPLAY = \"2\" } }\n ```\n\n- Example 2:\n \n ```toml\n [shortcuts]\n ctrl-a = { type = \"exec\", exec = { shell = \"grim - | wl-copy\", privileged = true } }\n ```\n",
1222+
"description": "The name, arguments, and environment variables of the executable to execute.\n\nExactly one of the `prog` or `shell` fields must be specified.\n\n- Example 1:\n\n ```toml\n [shortcuts]\n ctrl-a = { type = \"exec\", exec = { prog = \"notify-send\", args = [\"hello world\"], env.WAYLAND_DISPLAY = \"2\" } }\n ```\n\n- Example 2:\n\n ```toml\n [shortcuts]\n ctrl-a = { type = \"exec\", exec = { shell = \"grim - | wl-copy\", privileged = true } }\n ```\n",
12231223
"type": "object",
12241224
"properties": {
12251225
"prog": {

toml-spec/spec/spec.generated.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ The table has the following fields:
13821382
If this field is omitted, all modifiers are included in the mask.
13831383

13841384
- Example:
1385-
1385+
13861386
To raise the volume whenever the XF86AudioRaiseVolume key is pressed regardless
13871387
of any modifiers except `alt`:
13881388

@@ -1513,7 +1513,7 @@ The table has the following fields:
15131513
The keyboard repeat rate.
15141514

15151515
- Example:
1516-
1516+
15171517
```toml
15181518
repeat-rate = { rate = 25, delay = 250 }
15191519
```
@@ -1884,7 +1884,7 @@ The table has the following fields:
18841884
By default, the VRR mode is `never` and the cursor refresh rate is unbounded.
18851885
18861886
- Example:
1887-
1887+
18881888
```toml
18891889
vrr = { mode = "always", cursor-hz = 90 }
18901890
```
@@ -2550,7 +2550,7 @@ Exactly one of the `prog` or `shell` fields must be specified.
25502550
```
25512551

25522552
- Example 2:
2553-
2553+
25542554
```toml
25552555
[shortcuts]
25562556
ctrl-a = { type = "exec", exec = { shell = "grim - | wl-copy", privileged = true } }

toml-spec/spec/spec.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ Exec:
797797
```
798798
799799
- Example 2:
800-
800+
801801
```toml
802802
[shortcuts]
803803
ctrl-a = { type = "exec", exec = { shell = "grim - | wl-copy", privileged = true } }
@@ -2270,7 +2270,7 @@ Config:
22702270
The keyboard repeat rate.
22712271
22722272
- Example:
2273-
2273+
22742274
```toml
22752275
repeat-rate = { rate = 25, delay = 250 }
22762276
```
@@ -2634,7 +2634,7 @@ Config:
26342634
By default, the VRR mode is `never` and the cursor refresh rate is unbounded.
26352635
26362636
- Example:
2637-
2637+
26382638
```toml
26392639
vrr = { mode = "always", cursor-hz = 90 }
26402640
```
@@ -2790,9 +2790,9 @@ Config:
27902790
required: false
27912791
description: |
27922792
Sets the keysym that can be used to revert the pointer to the default state.
2793-
2793+
27942794
Pressing this key cancels any grabs, drags, selections, etc.
2795-
2795+
27962796
The default is `Escape`. Setting this to `NoSymbol` effectively disables
27972797
this functionality.
27982798
@@ -2998,7 +2998,7 @@ ComplexShortcut:
29982998
If this field is omitted, all modifiers are included in the mask.
29992999
30003000
- Example:
3001-
3001+
30023002
To raise the volume whenever the XF86AudioRaiseVolume key is pressed regardless
30033003
of any modifiers except `alt`:
30043004
@@ -3270,7 +3270,7 @@ UiDrag:
32703270
required: false
32713271
description: |
32723272
Sets the distance at which ui dragging starts.
3273-
3273+
32743274
The default is `10`.
32753275
32763276
@@ -3375,7 +3375,7 @@ Brightness:
33753375
The brightness setting of an output.
33763376
variants:
33773377
- kind: string
3378-
description: |
3378+
description: |
33793379
The default brightness setting.
33803380
values:
33813381
- value: default
@@ -3729,7 +3729,7 @@ WindowRule:
37293729
required: false
37303730
description: |
37313731
Whether newly mapped windows that match this rule get the keyboard focus.
3732-
3732+
37333733
If a window matches any rule for which this is false, the window will not be
37343734
automatically focused.
37353735
initial-tile-state:
@@ -3876,7 +3876,7 @@ WindowMatch:
38763876
required: false
38773877
description: |
38783878
Matches if the window has/hasn't just been mapped.
3879-
3879+
38803880
This is true for one iteration of the compositor's main loop immediately after the
38813881
window has been mapped.
38823882
tag:

0 commit comments

Comments
 (0)