aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-03-28 17:35:36 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-03-28 17:35:36 +0400
commit4f421907cd554f58a4426f4788c538be450b3cd6 (patch)
tree3c032a997f07743f5af8806adab0411e1c794bbf /resources
parentb4eaaed19e6d71ea6f35f31288f9f3c3e7e8ad9e (diff)
downloadniri-4f421907cd554f58a4426f4788c538be450b3cd6.tar.gz
niri-4f421907cd554f58a4426f4788c538be450b3cd6.tar.bz2
niri-4f421907cd554f58a4426f4788c538be450b3cd6.zip
wiki: Add Layout
Diffstat (limited to 'resources')
-rw-r--r--resources/default-config.kdl61
1 files changed, 29 insertions, 32 deletions
diff --git a/resources/default-config.kdl b/resources/default-config.kdl
index b4148bd8..99babc5b 100644
--- a/resources/default-config.kdl
+++ b/resources/default-config.kdl
@@ -80,6 +80,35 @@ input {
}
layout {
+ // Set gaps around windows in logical pixels.
+ gaps 16
+
+ // When to center a column when changing focus, options are:
+ // - "never", default behavior, focusing an off-screen column will keep at the left
+ // or right edge of the screen.
+ // - "always", the focused column will always be centered.
+ // - "on-overflow", focusing a column will center it if it doesn't fit
+ // together with the previously focused column.
+ center-focused-column "never"
+
+ // 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.33333
+ proportion 0.5
+ proportion 0.66667
+
+ // 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 {}
+
// By default focus ring and border are rendered as a solid background rectangle
// behind windows. That is, they will show up through semitransparent windows.
// This is because windows using client-side decorations can have an arbitrary shape.
@@ -110,9 +139,6 @@ layout {
// Color of the ring on inactive monitors.
inactive-color "#505050"
- // Additionally, there's a legacy RGBA syntax:
- // active-color 127 200 255 255
-
// You can also use gradients. They take precedence over solid colors.
// Gradients are rendered the same as CSS linear-gradient(angle, from, to).
// The angle is the same as in linear-gradient, and is optional,
@@ -142,27 +168,6 @@ layout {
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
}
- // 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.33333
- proportion 0.5
- proportion 0.66667
-
- // 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.
@@ -174,14 +179,6 @@ layout {
// top 64
// bottom 64
}
-
- // When to center a column when changing focus, options are:
- // - "never", default behavior, focusing an off-screen column will keep at the left
- // or right edge of the screen.
- // - "on-overflow", focusing a column will center it if it doesn't fit
- // together with the previously focused column.
- // - "always", the focused column will always be centered.
- center-focused-column "never"
}
// Add lines like this to spawn processes at startup.