WinCommand(1x)

πŸ’– WinCommand(1x) β€” the AfterStep X11 window manager era ✨

okay bestie, so this is WinCommand, a manual page from the AfterStep X11 window manager family, and it lives in section 1x of the manual. it's giving "tiny command, big opinions". let's get into it 🫢

✨ NAME ✨

WinCommand β€” an AfterStep module for choosing and manipulating windows based on patterns πŸ’…


πŸŽ€ CONFIGURATION OPTIONS πŸŽ€

ngl the original page puts this heading here and then... literally nothing under it. no options. empty. a vibe. πŸ™ˆ noted and preserved, bestie.


🌸 DESCRIPTION 🌸

WinCommand is a command line tool that lets you select windows by their name and then manipulate them in various ways. main character energy for sure πŸ‘‘

the actions currently supported are:

  • "center"
  • "center jump"
  • "iconify"
  • "jump"
  • "kill"
  • "move"
  • "resize"
  • "sendtodesk"

periodt. that's the whole toolkit ✨


πŸ’œ DEFAULTS πŸ’œ

the default pattern is "" β€” which means all windows will be selected. everybody's invited to the party πŸŽ‰

all the other default-values depend on the action you would like WinCommand to take. and here's the tiny plot twist: if more than one action is specified, the default-values get set depending on the last action specified. so order matters, bestie. last one wins, no cap πŸ’€


πŸ‘‘ ACTIONS πŸ‘‘

  • center β€” places matching windows into the center of the screen. centering. iconic behavior 🎯
  • center jump: β€” places the first window that matches into the center of the screen, then jumps to it. two things at once, ate ✨
  • iconify: β€” iconifies matching windows. bye bestie, you're a little icon now πŸ¦‹
  • jump: β€” jumps to the first window which matches. race you there πŸƒβ€β™€οΈ
  • kill: β€” kills all matching windows. πŸ’€ dramatic but accurate.
  • move: β€” moves all matching windows to x/y. x and y are specified using the -x and -y flags. scoot scoot 🚚
  • resize: β€” resize all matching windows. the two parameters width and height are specified using the -width and -height flags. glow-up time πŸ“
  • send_to_desk: β€” send all matching windows to the desk specified with the -new_desk flag. go to your room, window πŸšͺ

🌈 OPTIONS 🌈

  • -all β€” operate on all windows which match the given pattern. this is set by default unless the action is either "jump" or "center jump". so it's the default vibe, except for those two βœ‹
  • -alldesks β€” windows on all desks will be taken into account. this is set by default if the action is either "jump" or "center jump". the all-seeing option πŸ”­
  • -desk β€” windows on the whole desk will be taken into account. πŸͺ‘
  • -x/-y β€” these are required when issuing the move-command. no coordinates, no moving, fr fr πŸ“
  • -width/-height β€” these are required whenever you want to resize windows. πŸ“

πŸ“ the examples, because these are lowkey the best part πŸ“

WinCommand -pattern term iconify

this command will iconify all terminals πŸ–₯️✨

since the specified pattern is a regular expression, something like this also works:

WinCommand -pattern "(term)|(moz)" iconify

this will iconify all terminals and mozilla-browser windows. regex said "why not both" πŸ’…

WinCommand -pattern xmm jump

will jump to your xmms 🎡 but in this situation, it's far more advisable to use GWCommand though. just saying πŸ‘€

⚠️ okay serious moment: it is probably not a good idea to delete windows while windows are being arranged. don't do it bestie, please, I'm begging 😭

πŸ’« sign-off πŸ’«

and that's the whole page, babe! this one shipped from the 3rd Berkeley Distribution, version AfterStep v.2.2.12, and it's the WinCommand(1x) life. go forth and center your windows, you absolute icon πŸ‘‘πŸŽ€βœ¨

πŸ“¦ where this page comes from