From ae1f490426ff919a0ed5c270c471ad3ff2f41379 Mon Sep 17 00:00:00 2001 From: Dan MacLeod Date: Sun, 6 Jul 2025 15:54:27 +0930 Subject: [PATCH] niri config changes --- niri/config.kdl | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/niri/config.kdl b/niri/config.kdl index 3c107f3..40a7fc5 100644 --- a/niri/config.kdl +++ b/niri/config.kdl @@ -4,6 +4,7 @@ // https://github.com/YaLTeR/niri/wiki/Configuration:-Introduction hotkey-overlay { + // Skip showing the hotkeys skip-at-startup } @@ -51,7 +52,6 @@ input { trackpoint { // off - // natural-scroll // accel-speed 0.2 // accel-profile "flat" @@ -145,14 +145,17 @@ layout { proportion 0.33333 proportion 0.5 proportion 0.66667 - proportion 1.0 // Fixed sets the width in logical pixels exactly. // fixed 1920 } // You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between. - // preset-window-heights { } + preset-window-heights { + proportion 0.333333 + proportion 0.5 + proportion 0.666667 + } // You can change the default width of the new windows. default-column-width { proportion 0.5; } @@ -336,11 +339,15 @@ window-rule { match app-id=r#"zen$"# title="^Extension:" match app-id=r#"com.nextcloud.desktopclient.nextcloud$"# match app-id=r#"mako"# - match app-id=r#"org.pulseaudio.pavucontrol"# open-floating true } +window-rule { + match app-id=r#"org.pulseaudio.pavucontrol"# + default-column-width { proportion 0.333333; } +} + window-rule { // Zed and Zen should be 66% wide match app-id="dev.zed.Zed" @@ -408,6 +415,7 @@ binds { Mod+D hotkey-overlay-title="Run an Application: cosmic-apps" { spawn "cosmic-app-library"; } Mod+Shift+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; } Mod+B hotkey-overlay-title="Open the Default Browser" { spawn "xdg-open" "http://"; } + Mod+X hotkey-overlay-title="Open the Default File Manager" { spawn "xdg-open" "/home/danmac/"; } Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock" "-f" "-i" "/tmp/blurred_IMG_8618-Enhanced-NR.jpg"; } // toggle notification panel @@ -569,12 +577,21 @@ binds { Mod+Shift+7 { move-column-to-workspace 7; } Mod+Shift+8 { move-column-to-workspace 8; } Mod+Shift+9 { move-column-to-workspace 9; } + Mod+Ctrl+1 { move-window-to-workspace 1; } + Mod+Ctrl+2 { move-window-to-workspace 2; } + Mod+Ctrl+3 { move-window-to-workspace 3; } + Mod+Ctrl+4 { move-window-to-workspace 4; } + Mod+Ctrl+5 { move-window-to-workspace 5; } + Mod+Ctrl+6 { move-window-to-workspace 6; } + Mod+Ctrl+7 { move-window-to-workspace 7; } + Mod+Ctrl+8 { move-window-to-workspace 8; } + Mod+Ctrl+9 { move-window-to-workspace 9; } // Alternatively, there are commands to move just a single window: // Mod+Ctrl+1 { move-window-to-workspace 1; } // Switches focus between the current and the previous workspace. - // Mod+Tab { focus-workspace-previous; } + Mod+Tab { focus-workspace-previous; } // The following binds move the focused window in and out of a column. // If the window is alone, they will consume it into the nearby column to the side.