XWIT(1)
πΈ XWIT(1) β General Commands Manual πΈ
hiii bestie welcome to the xwit page, it's from the General Commands Manual section and honestly it's a whole vibe π
it's a lil X window manipulation tool and by the end of this you're gonna be popping and iconifying windows like it's nothing, no cap β¨
π NAME π
xwit β window interface tool: pop or iconify this xterm window or named windows
π¦ SYNOPSIS π¦
xwit [-display display] [-sync] [-pop] [-focus] [-iconify] [-unmap]
[-raise] [-lower] [-opposite] [-[un]circulate]
[-resize w h] [-rows r] [-columns c] [-[r]move x y]
[-[r]warp x y] [-colormap colormapid] [-[no]save]
[-name name] [-iconname name]
[-bitmap file] [-mask file] [-[r]iconmove x y]
[-[no]backingstore] [-[no]saveunder]
[-[no]keyrepeat keycode ... keycode - keycode ...]
[-id windowid] [-root] [-current] [-select] [-all] [-names
initialsubstring...]
β¨ DESCRIPTION β¨
okay so xwit is an X window interface tool. That's the whole thing, that's the job π
By default, if you run it with no arguments inside an xterm, it de-iconifies and raises the window. Like, it un-minimizes your terminal and yanks it to the front, main character energy fr fr π
But you can also tell it to do something different β iconifying the window, for example β and then apply that action to:
- several windows whose name begins with one of the strings you give it π«Ά
- a particular window id you hand over
- the window id found in the environment variable
WINDOWID(which is set byxtermfor the program it runs) - or the window under the mouse cursor π±οΈ
So many options, so much power, we love to see it.
π OPTIONS π
-displayβ is followed by the display to open.-syncβ causes all X requests to be performed synchronously.-propertyproperty β causes the specified property to be used instead of the window's name (which isWM_NAME). Some possible values are:WM_CLASS,WM_COMMAND,WM_ICON_NAME,WM_CLIENT_MACHINE.-popβ is the default action. It only needs to be given if you want it as well as some other function. (yes bestie, popping is the factory setting π)-focusβ will give the input focus to the specified window.-iconifyβ will iconify the windows instead of popping them.-unmapβ will iconify windows by unmapping, with a non ICCCM compliant window manager.
β οΈ Beware, this option is not usually what you want. Like, seriously, look away π
-raiseβ raise windows (but do not map them if unmapped).-lowerβ lower windows.-oppositeβ toggle the stacking of windows from top to bottom among any overlapping windows.-circulateβ circulate a window's subwindows forward. Use this with-root.-uncirculateβ circulate a window's subwindows backward. Use this with-root.-resizew h β resize windows to the given pixel size.-rowsr β resize windows to the given number of rows.-columnsc β resize windows to the given number of columns.-movex y β move windows to the given absolute position relative to its parent. (If the x or y value is negative it is taken relative to the right or bottom edge of the parent.)-rmovex y β move windows by the given relative amount.-warpx y β move the cursor to the given position relative to the specified window. Add-rootto warp to an absolute position.-rwarpx y β move the cursor by the given relative amount.-colormapcolormapid β install the given colormap into the given window.-save,-nosaveβ immediately enable or disable the screen saver.-namename β set theWM_NAMEproperty to the given string.-iconnamename β set theWM_ICON_NAMEproperty to the given string.-bitmapfile β use the given bitmap file as the icon bitmap for the window.-maskfile β use the given bitmap file as the icon mask for the window.-iconmovex y β move icons to the given absolute position. (Will not work with some window managers. π)-riconmovex y β move icons by the given relative amount. (Will not work with some window managers. π)-backingstore,-bs,-nobackingstore,-nobsβ enable or disable backing store for the window.-saveunder,-su,-nosaveunder,-nosuβ enable or disable saveunders for the window.-keyrepeat,-nokeyrepeatβ is followed by a list of keycodes (decimal numbers, seexmodmap(1)). A range can be specified as a lower number,-, and upper number as three separate arguments. The individual setting of auto-repeat for those keycodes is set on or off. The global setting of auto-repeat can be set withxset(1). When off, no keys will repeat.-printβ will print the id, the coordinates, the depth and the name of all selected windows. If-propertyis given, that one will be printed instead of the name.
π±οΈ Window Selection π±οΈ
If no window is specified, $WINDOWID will be used if set; otherwise the window under the cursor will be selected. (automatic queen behavior π
)
-idβ is followed by a single window number, in decimal; or, if it begins with0x, in hexadecimal.-rootβ selects the root window.-currentβ selects the window under the cursor (default if no window specified and$WINDOWIDnot set).-selectβ allows the user to interactively select a window with the mouse.-allβ is equivalent to-names '', as easier to remember.-namesβ if given must be the last option and is followed by a list of strings. All windows that have a name that begins exactly like one of the strings will be acted upon. If-propertyis given, this property is used instead of the name. By using a null string (-names ''), all names will be matched.
π EXAMPLES π
To de-iconify and pop "this" xterm and warp the cursor into it:
xwit -pop -warp 50 50
To interactively select an xterm, and resize it to 34 rows and 80 columns:
xwit -select -rows 34 -columns 80
To gently agitate your oclock on the screen:
while xwit -rmove 0 10 -names oclock
do xwit -rmove 0 -10 -names oclock
done
(that last one is honestly so unserious and I'm obsessed with it πβ¨)
π DIAGNOSTICS π
Exit status is:
0if any action is taken π1if no window matches the list supplied to-namesπ2if an error occurs π
π LIMITATIONS π
Since each application is supposed to request these functions of the window manager, some of them may not like other clients mapping and unmapping them behind their backs. (drama π³)
Iconification is requested of the window manager using the ICCCM. Non ICCCM compliant window managers may not react correctly.
π AUTHORS π
- Mark M Martin, CETIA France,
mmm@cetia.fr - David DiGiacomo,
david@slack.com
π«Ά ACKNOWLEDGEMENTS π«Ά
Thanks to Andre Delafontaine, Norman R. McBride, Keith Thompson, Glen R. Walker, Michael Mauch, Dima Barsky and Decklin Foster for bug reports, suggestions and/or patches. absolute legends, every single one π
okay that's the whole page bestie!! this version dropped 2 Dec 2005 and it lives in section XWIT(1) of the General Commands Manual β now go forth and pop some windows, you've got this ππ
π¦ where this page comes from
- debian bookworm: xwit 3.4-16+b1
- debian trixie: xwit 3.4-16+b1
- ubuntu jammy: xwit 3.4-16
- ubuntu noble: xwit 3.4-16
- ubuntu questing: xwit 3.4-16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms