FOCUSWIN(1)

πŸ“¦ version 0-unstable-2021-02, in nixos 26.05, nixpkgs unstable

πŸ’… 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 πŸ¦‹

focusmon(1), focusws(1)


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