aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-10-05 09:25:07 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-10-05 09:25:07 +0400
commit6fcdb4192275a8112fd45a91eb3e4b70c5ac684f (patch)
treebcd857c8e96952f81c5a049eeaec571c23b6febf /resources
parent3ac16074063db2cccdb10d9e5b832aaec0492bb4 (diff)
downloadniri-6fcdb4192275a8112fd45a91eb3e4b70c5ac684f.tar.gz
niri-6fcdb4192275a8112fd45a91eb3e4b70c5ac684f.tar.bz2
niri-6fcdb4192275a8112fd45a91eb3e4b70c5ac684f.zip
Refactor layout for configurability, add preset-column-widths option
layout.rs finally gets a struct actually named Layout.
Diffstat (limited to 'resources')
-rw-r--r--resources/default-config.kdl13
1 files changed, 13 insertions, 0 deletions
diff --git a/resources/default-config.kdl b/resources/default-config.kdl
index 11d225cb..926d0def 100644
--- a/resources/default-config.kdl
+++ b/resources/default-config.kdl
@@ -93,6 +93,19 @@ cursor {
// If the client will specifically ask for CSD, the request will be honored.
// 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
+}
+
binds {
// Keys consist of modifiers separated by + signs, followed by an XKB key name
// in the end. To find an XKB name for a particular key, you may use a program