New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change focused container #1112
Comments
[Original comment by TonyC] I think what you want is some kind of conditional focus command, where if the command fails to change focus, it should pick the most intuitive alternative based on the current layout. This kind of intuition is extremely difficult to describe in logical terms precise enough to translate into computer code. I wouldn't even suggest you try to write a script for this. It would be easier to key the sequence of commands that does exactly what you want each time. |
[Original comment by udvzsolt@…] No, I think should not be a complicated focus command. I think would be a 'focus' command and a 'focus_container' command, with same parameters ('focus left' works as now, and 'focus_container left' change focus to the container to left). |
I don’t yet understand how a focus_container command would help in your situation, given that it is effectively the same as “focus parent; focus $direction”. I.e., the focus_container command would not magically work on windows that are not within a split container, which is — AFAIU — where the trouble starts for you. |
[Original comment by Zsolt Udvari <udvzsolt@…>] No, not exactly. If you've two windows in a container and you don't have anything else, "focus parent; focus $direction" doesn't work. In this case I think "focus_container left" shouldn't do anything - because of non-existent container on left. |
Replying to comment 4 by Zsolt Udvari <udvzsolt@…>:
Why don’t you just use “focus parent; focus $direction” when it’s appropriate and directly ”focus” when it’s not? :) |
[Original comment by Zsolt Udvari <udvzsolt@…>] It seems simple :) But when I press ''focus_container-hotkey'' in bad situation I should use mouse to correct the mistake. But in "bad situation" the focus_container would does nothing so doesn't need correct the mistake :) |
To fix the situation, you can use “focus child” (not bound in the default config). If that doesn’t work, it’s a separate bug. I’m closing this ticket since I don’t believe focus_container is a worthwhile thing to introduce, see my earlier comments. |
[Originally reported by udvzsolt@…]
(I think it would be nice if can change the current container. See a thread here: https://faq.i3wm.org/question/2809/focus-between-and-inside-containers/
The text was updated successfully, but these errors were encountered: