|
|
@ -563,17 +563,13 @@ tables](https://toml.io/en/v1.0.0#array-of-tables) in TOML where a module's |
|
|
|
assigned to are `Left`, `Middle`, `Right`, `WheelUp`, `WheelDown`, |
|
|
|
assigned to are `Left`, `Middle`, `Right`, `WheelUp`, `WheelDown`, |
|
|
|
`WheelLeft`, and `WheelRight`. |
|
|
|
`WheelLeft`, and `WheelRight`. |
|
|
|
|
|
|
|
|
|
|
|
The `on_click` table can also be written as: |
|
|
|
The `on_click` table can also be written as inline table |
|
|
|
|
|
|
|
|
|
|
|
```toml |
|
|
|
```toml |
|
|
|
on_click = { |
|
|
|
on_click = { Left = ['swayr', 'switch-to-urgent-or-lru-window'], Right = ['kill', '{pid}'] } |
|
|
|
Left = ['swayr', 'switch-to-urgent-or-lru-window'] |
|
|
|
|
|
|
|
Right = ['kill', '{pid}'] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
I think this version is more readable but the version shown in the beginning of |
|
|
|
but then it has to be on one single line. |
|
|
|
this section is what the [toml crate](https://crates.io/crates/toml) exports. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## <a id="questions-and-patches">Questions & Patches</a> |
|
|
|
## <a id="questions-and-patches">Questions & Patches</a> |
|
|
|