feat(niri): preset window heights and column width

This commit is contained in:
Ahurac 2024-11-05 15:03:51 +01:00
parent af91148e18
commit ba7c68e39e

View file

@ -306,7 +306,8 @@
layout = {
gaps = 10;
default-column-width.proportion = 0.5;
preset-window-heights = [{ proportion = 1.0 / 2.0; }];
preset-column-widths = [ { proportion = 0.5; } { proportion = 0.9; } ];
preset-window-heights = [{ proportion = 0.5; }];
focus-ring.enable = false;
border = {
enable = true;
@ -325,6 +326,7 @@
matches =
[{ app-id = "^(im\\.riot\\.Riot|WebCord|@joplin/app-desktop)$"; }];
open-on-workspace = "apps";
default-column-width.proportion = 0.9;
}
{
geometry-corner-radius = {
@ -359,11 +361,12 @@
"Mod+Shift+WheelScrollDown".action = move-column-right;
"Mod+Shift+WheelScrollUp".action = move-column-left;
"Mod+Tab".action = focus-workspace-previous;
"Mod+F".action = maximize-column;
"Mod+W".action = set-column-width "-10%";
"Mod+X".action = set-column-width "+10%";
"Mod+Shift+W".action = set-window-height "-10%";
"Mod+Shift+X".action = set-window-height "+10%";
"Mod+Shift+W".action = maximize-column;
"Mod+Shift+X".action = reset-window-height;
"Mod+W".action = switch-preset-window-height;
"Mod+X".action = switch-preset-column-width;
"Mod+E".action = set-column-width "-10%";
"Mod+R".action = set-column-width "+10%";
"Print".action = screenshot-screen;
"Shift+Print".action = screenshot;
"Alt+Print".action = screenshot-window;