diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-06 13:04:21 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-06 13:04:21 +0400 |
| commit | 4e0aa391137a53180783ab3d2d0ff0cc6311b23b (patch) | |
| tree | c247452d66a09602fc2338980e8bc4582d5b7a07 /resources | |
| parent | dcb80efc8803e9a7a90f26044867bf4fd7671310 (diff) | |
| download | niri-4e0aa391137a53180783ab3d2d0ff0cc6311b23b.tar.gz niri-4e0aa391137a53180783ab3d2d0ff0cc6311b23b.tar.bz2 niri-4e0aa391137a53180783ab3d2d0ff0cc6311b23b.zip | |
[cfg-breaking] Move layout settings into their own scope
Diffstat (limited to 'resources')
| -rw-r--r-- | resources/default-config.kdl | 114 |
1 files changed, 58 insertions, 56 deletions
diff --git a/resources/default-config.kdl b/resources/default-config.kdl index 4ea3b5d0..5babfb41 100644 --- a/resources/default-config.kdl +++ b/resources/default-config.kdl @@ -75,37 +75,72 @@ input { position x=1280 y=0 } -// Add lines like this to spawn processes at startup. -// Note that running niri as a session supports xdg-desktop-autostart, -// which may be more convenient to use. -// spawn-at-startup "alacritty" "-e" "fish" +layout { + // You can change how the focus ring looks. + focus-ring { + // Uncomment this line to disable the focus ring. + // off -// You can change how the focus ring looks. -focus-ring { - // Uncomment this line to disable the focus ring. - // off + // How many logical pixels the ring extends out from the windows. + width 4 - // How many logical pixels the ring extends out from the windows. - width 4 + // Color of the ring on the active monitor: red, green, blue, alpha. + active-color 127 200 255 255 - // Color of the ring on the active monitor: red, green, blue, alpha. - active-color 127 200 255 255 + // Color of the ring on inactive monitors: red, green, blue, alpha. + inactive-color 80 80 80 255 + } - // Color of the ring on inactive monitors: red, green, blue, alpha. - inactive-color 80 80 80 255 -} + // You can also add a border. It's similar to the focus ring, but always visible. + border { + // The settings are the same as for the focus ring. + // If you enable the border, you probably want to disable the focus ring. + off -// You can also add a border. It's similar to the focus ring, but always visible. -border { - // The settings are the same as for the focus ring. - // If you enable the border, you probably want to disable the focus ring. - off + width 4 + active-color 255 200 127 255 + inactive-color 80 80 80 255 + } + + // You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between. + preset-column-widths { + // Proportion sets the width as a fraction of the output width, taking gaps into account. + // For example, you can perfectly fit four windows sized "proportion 0.25" on an output. + // The default preset widths are 1/3, 1/2 and 2/3 of the output. + proportion 0.333 + proportion 0.5 + proportion 0.667 + + // Fixed sets the width in logical pixels exactly. + // fixed 1920 + } - width 4 - active-color 255 200 127 255 - inactive-color 80 80 80 255 + // You can change the default width of the new windows. + default-column-width { proportion 0.5; } + // If you leave the brackets empty, the windows themselves will decide their initial width. + // default-column-width {} + + // Set gaps around windows in logical pixels. + gaps 16 + + // Struts shrink the area occupied by windows, similarly to layer-shell panels. + // You can think of them as a kind of outer gaps. They are set in logical pixels. + // Left and right struts will cause the next window to the side to always be visible. + // Top and bottom struts will simply add outer gaps in addition to the area occupied by + // layer-shell panels and regular gaps. + struts { + // left 64 + // right 64 + // top 64 + // bottom 64 + } } +// Add lines like this to spawn processes at startup. +// Note that running niri as a session supports xdg-desktop-autostart, +// which may be more convenient to use. +// spawn-at-startup "alacritty" "-e" "fish" + cursor { // Change the theme and size of the cursor as well as set the // `XCURSOR_THEME` and `XCURSOR_SIZE` env variables. @@ -118,39 +153,6 @@ cursor { // Additionally, clients will be informed that they are tiled, removing some rounded corners. // prefer-no-csd -// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between. -preset-column-widths { - // Proportion sets the width as a fraction of the output width, taking gaps into account. - // For example, you can perfectly fit four windows sized "proportion 0.25" on an output. - // The default preset widths are 1/3, 1/2 and 2/3 of the output. - proportion 0.333 - proportion 0.5 - proportion 0.667 - - // Fixed sets the width in logical pixels exactly. - // fixed 1920 -} - -// You can change the default width of the new windows. -default-column-width { proportion 0.5; } -// If you leave the brackets empty, the windows themselves will decide their initial width. -// default-column-width {} - -// Set gaps around windows in logical pixels. -gaps 16 - -// Struts shrink the area occupied by windows, similarly to layer-shell panels. -// You can think of them as a kind of outer gaps. They are set in logical pixels. -// Left and right struts will cause the next window to the side to always be visible. -// Top and bottom struts will simply add outer gaps in addition to the area occupied by -// layer-shell panels and regular gaps. -struts { - // left 64 - // right 64 - // top 64 - // bottom 64 -} - // You can change the path where screenshots are saved. // A ~ at the front will be expanded to the home directory. // The path is formatted with strftime(3) to give you the screenshot date and time. |
