FOCUSWIN(1)
π FOCUSWIN(1) β bestie's guide to the focus window command π¦
okay so real talk, this is focuswin, straight out of the General Commands Manual, and it does exactly one thing but it does it so well: it moves your focus to another window. that's it. that's the whole vibe. β¨
πΈ NAME πΈ
focuswin β focus window. literally the name, no cap.
π SYNOPSIS π
focuswin (direction|number)
one argument, and it's either a direction or a number. pick your fighter. π
π₯ DESCRIPTION π₯
focuswin focuses a window, and you tell it which window by passing an argument. iconic behaviour honestly.
that argument has to be one of the following, no improvising:
leftβ focus the closest window to the left in the current monitor. β¬ οΈrightβ focus the closest window to the right in the current monitor. β‘οΈupβ focus the closest window upwards in the current monitor. β¬οΈdownβ focus the closest window downwards in the current monitor. β¬οΈnextβ focus the next window in the current monitor. πΆββοΈpreviousβ focus the previous window in the current monitor. πΆββοΈ (but backwards)- N β where N is a number, focus the N-th window in the current monitor. π’
and here's the little detail that makes it chef's kiss: focuswin gives preference to windows that are aligned with the focused window. that's lowkey the whole reason it slaps β it's super useful for focusing tiled windows. π§
also important, and I need you to hear me on this one: focuswin focuses only windows visible in the monitor where the currently focused window is in. so like, no sneaky hopping across monitors. stay in your lane bestie, it's a vibe. π«Ά
π ENVIRONMENT π
these environment variables affect the execution of focuswin:
DISPLAYβ the display where the window to be focused is. π
β EXIT STATUS β
0β success. slay. we ate. π>0β an error occurred. π not slay. try again.
π¦ SEE ALSO π¦
ngl the manpage literally ends with a trailing comma after focusws(1), and I'm obsessed with the chaos of it. keeping it fr fr. π
okay that's the whole thing!! this little page came from the General Commands Manual and signs off as FOCUSWIN(1) β no date on this one, so consider this your cutest possible goodbye. mwah. ππβ¨
π¦ where this page comes from
- nixos 26.05: focus 0-unstable-2021-02-23
- nixpkgs unstable: focus 0-unstable-2021-02-23
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms