diff options
| author | Suyashtnt <suyashtnt@gmail.com> | 2024-07-08 15:14:01 +0200 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-07-08 17:42:09 +0300 |
| commit | 3be6e38af3c788be3d32ff006c72ad0b1787a879 (patch) | |
| tree | e8a1362454f1c57f4869cb4a50f1ce275e43bdf9 /wiki/Configuration:-Overview.md | |
| parent | f2290a43d9af3f272f5bb8d57c350b0896d0cd27 (diff) | |
| download | niri-3be6e38af3c788be3d32ff006c72ad0b1787a879.tar.gz niri-3be6e38af3c788be3d32ff006c72ad0b1787a879.tar.bz2 niri-3be6e38af3c788be3d32ff006c72ad0b1787a879.zip | |
wiki: update wiki kdl snippets
Signed-off-by: Suyashtnt <suyashtnt@gmail.com>
Diffstat (limited to 'wiki/Configuration:-Overview.md')
| -rw-r--r-- | wiki/Configuration:-Overview.md | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/wiki/Configuration:-Overview.md b/wiki/Configuration:-Overview.md index ce5ef9bd..5f3787e2 100644 --- a/wiki/Configuration:-Overview.md +++ b/wiki/Configuration:-Overview.md @@ -40,10 +40,12 @@ Lines starting with `//` are comments; they are ignored. Also, you can put `/-` in front of a section to comment out the entire section: -``` +```kdl /-output "eDP-1" { - everything inside here - is ignored + // Everything inside here is ignored. + // The display won't be turned off + // as the whole section is commented out. + off } ``` @@ -53,7 +55,7 @@ Toggle options in niri are commonly represented as flags. Writing out the flag enables it, and omitting it or commenting it out disables it. For example: -``` +```kdl // "Focus follows mouse" is enabled. input { focus-follows-mouse @@ -62,7 +64,7 @@ input { } ``` -``` +```kdl // "Focus follows mouse" is disabled. input { // focus-follows-mouse @@ -75,7 +77,7 @@ input { Most sections cannot be repeated. For example: -``` +```kdl // This is valid: every section appears once. input { keyboard { @@ -88,7 +90,8 @@ input { } ``` -``` +<!-- no-test --> +```kdl // This is NOT valid: input section appears twice. input { keyboard { @@ -105,7 +108,8 @@ input { Exceptions are, for example, sections that configure different devices by name: -``` +<!-- no-test --> +```kdl output "eDP-1" { // ... } |
