Replies: 5 comments 10 replies
|
Perhaps this..? |
|
I have the opposite screen, but the same request. I use a cramped 13" monitor often, and a lot of my daily work involves copy-pasting strings from one application to another, or observing one application and writing a report in another window. Often, one, or both applications are partially spilling out of my screen, which is fine, because I only need to focus on the part of the window. For example, say I am looking at a website in Firefox on the left, and taking notes in Obsidian to the right. I would like an option for the layout to never move, under any circumstance, unless I explicitly require it with a keybind. I do not think this would be confusing, as I don't think there's a way to select a window that's out of view (except alt-tabbing, which would still of course focus a window). But if there were, then I suggest an arrow with a thumbnail preview pointing to the location of the selected window on either side of the screen (think directional damage indicators in games). Alternatively, the setting could only cancel shifts if a selected window is at least partially in view (based on a percentage, like "focus follows mouse"). I know OP and I are probably an incredibly small minority, but if that request could be considered, that'd be amazing. |
|
Hm sometimes this is actually of some use; I want to "lock" the layout to let it not scroll on mouse clicks. e.g. I have two ~50% windows side by side but one is slightly >50% (some windows don't event want the wm to set its width <=50%!) and when interacting between them, the layout keeps scrolling a bit on focus change. Or, a 100% & a 50% window layouted side by side and I only need the right-half content of the 100% window and in this case sometimes I hope it won't scroll and show me the whole window once clicking on the 100% window; and for some cases one may want controlling the window focus only via keys (for example Mod+Q & Mod+E for one hand keybind) but not mouse clicks. These three lines of code do the thing. And removing them prevents it. diff --git a/src/input/mod.rs b/src/input/mod.rs
index 50567530..d57d73fa 100644
--- a/src/input/mod.rs
+++ b/src/input/mod.rs
@@ -2993,10 +2993,6 @@ impl State {
}
}
- if !is_overview_open {
- self.niri.layout.activate_window(&window);
- }
-
// FIXME: granular.
self.niri.queue_redraw_all();
} else if let Some((output, ws)) = is_overview_openMaybe a config like |
|
Sounds neat. One thought that occurs to me reading your comment is that people may want to toggle this one or off. I don't know if that kind of design fits well with Niri (I'm new and not too acquainted yet with the design philosophy) and there are certainly ways to do it in userspace, but being able to conditionally lock your screen sounds potentially better than having it as a general all-encompassing property. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm trying to make Niri work for my ultrawide setup. The option
center-focused-column "always"got me very far, I love how my focus is always in the center in front of me and other windows surround my focus.The only problem that occurs when clicking on a "secondary" window, for example when copying text or clicking a button, the focus changes to that other window. That of course is the intended behavior and it makes sense most of the time but in that moment I don't want the focus to change.
If there was an option to disable the focus change on click, I could center my focus with the keyboard, click a button on a "secondary" window and the focus wouldn't change automatically. Could this be an option in Niri?
Thank you very much!
All reactions