From 87b77cd412466b29a6dce8d1f6219f6b227a3cf9 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Tue, 27 May 2025 16:11:36 +0200 Subject: [PATCH] niri stuff --- tree/.config/niri/config.kdl.tpl | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/tree/.config/niri/config.kdl.tpl b/tree/.config/niri/config.kdl.tpl index 14e845c..222770f 100644 --- a/tree/.config/niri/config.kdl.tpl +++ b/tree/.config/niri/config.kdl.tpl @@ -33,7 +33,7 @@ clipboard { disable-primary // disable middle-click paste } -// https://gdthub.com/YaLTeR/niri/wiki/Configuration:-Outputs +// https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs // `niri msg outputs` output "Microstep MSI MAG342CQR DB6H262101804" { mode "3440x1440@144.000" @@ -88,6 +88,10 @@ layout { off } + shadow { + on + } + // You can also add a border. It's similar to the focus ring, but always visible. border { // The settings are the same as for the focus ring. @@ -279,6 +283,12 @@ window-rule { //max-width 400 } +window-rule { + match app-id="com.nextcloud.desktopclient.nextcloud" + open-floating true + default-floating-position x=5 y=10 relative-to="bottom-left" +} + 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 @@ -356,14 +366,6 @@ binds { Mod+Shift+Ctrl+K { move-column-to-monitor-up; } Mod+Shift+Ctrl+L { move-column-to-monitor-right; } - // Alternatively, there are commands to move just a single window: - // Mod+Shift+Ctrl+Left { move-window-to-monitor-left; } - // ... - - // And you can also move a whole workspace to another monitor: - // Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; } - // ... - Mod+Page_Down { focus-workspace-down; } Mod+Page_Up { focus-workspace-up; } Mod+U { focus-workspace-down; } @@ -373,15 +375,13 @@ binds { Mod+Ctrl+U { move-column-to-workspace-down; } Mod+Ctrl+I { move-column-to-workspace-up; } - // Alternatively, there are commands to move just a single window: - // Mod+Ctrl+Page_Down { move-window-to-workspace-down; } - // ... - Mod+Shift+Page_Down { move-workspace-down; } Mod+Shift+Page_Up { move-workspace-up; } Mod+Shift+U { move-workspace-down; } Mod+Shift+I { move-workspace-up; } + Mod+Backspace { toggle-overview; } + // You can bind mouse wheel scroll ticks using the following syntax. // These binds will change direction based on the natural-scroll setting. // @@ -449,6 +449,7 @@ binds { Mod+Comma { consume-window-into-column; } Mod+Period { expel-window-from-column; } + Mod+W { toggle-column-tabbed-display; } // There are also commands that consume or expel a single window to the side. // Mod+BracketLeft { consume-or-expel-window-left; }