From ec70a18eba42d73a37cb12569294d41dbe66a79e Mon Sep 17 00:00:00 2001 From: Tyler Mayoff Date: Mon, 1 Sep 2025 20:47:12 -0400 Subject: [PATCH] niri configs --- dot_config/flake/home/niri.nix | 46 +++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/dot_config/flake/home/niri.nix b/dot_config/flake/home/niri.nix index 6dec73b..04b92cc 100644 --- a/dot_config/flake/home/niri.nix +++ b/dot_config/flake/home/niri.nix @@ -142,24 +142,18 @@ # // 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 - # } + # Widths to cycle through + preset-column-widths = [ + {proportion = 1. / 3.;} + {proportion = 1. / 2.;} + {proportion = 2. / 3.;} + ]; # // You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between. # // preset-window-heights { } - # // You can change the default width of the new windows. - # default-column-width { proportion 0.5; } + # 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 {} @@ -174,7 +168,7 @@ # // Alternatively, you can override it with a window rule called # // `draw-border-with-background`. - # // You can change how the focus ring looks. + # You can change how the focus ring looks. # focus-ring { # // Uncomment this line to disable the focus ring. # // off @@ -291,7 +285,7 @@ # Additionally, clients will be informed that they are tiled, removing some client-side rounded corners. # This option will also fix border/focus ring drawing behind some semitransparent windows. # After enabling or disabling this, you need to restart the apps for this to take effect. - # prefer-no-csd + # prefer-no-csd = true; # // You can change the path where screenshots are saved. # // A ~ at the front will be expanded to the home directory. @@ -485,12 +479,24 @@ # // Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; } # // ... - "Mod+Page_Down".action = focus-workspace-down; - "Mod+Page_Up".action = focus-workspace-up; + "Mod+Page_Down" = { + hotkey-overlay.title = "Switch workspace down"; + action = focus-workspace-down; + }; + "Mod+Page_Up" = { + hotkey-overlay.title = "Switch workspace up"; + action = focus-workspace-up; + }; "Mod+U".action = focus-workspace-down; "Mod+I".action = focus-workspace-up; - "Mod+Ctrl+Page_Down" .action = move-column-to-workspace-down; - "Mod+Ctrl+Page_Up" .action = move-column-to-workspace-up; + "Mod+Ctrl+Page_Down" = { + hotkey-overlay.title = "Move column up a workspace"; + action = move-column-to-workspace-down; + }; + "Mod+Ctrl+Page_Up" = { + hotkey-overlay.title = "Move column down a workspace"; + action = move-column-to-workspace-up; + }; "Mod+Ctrl+U".action = move-column-to-workspace-down; "Mod+Ctrl+I".action = move-column-to-workspace-up;