diff options
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" { // ... } |
