CTWM(1)
β¨ NAME β¨
ctwm β Claude's Tab Window Manager for the X Window System π
π¦ SYNTAX π¦
okay so here's the whole launch vibe, bestie:
ctwm [(--display | -d) dpy] [--replace] [--single]
[(--file | -f) initfile] [--cfgchk] [--dumpcfg]
[--nom4 | -n] [(--keep-defs | -k)] [(--keep | -K) m4file]
[--verbose | -v] [--quiet | -q] [--mono] [--xrm resource]
[--version] [--info] [--nowelcome | -W]
[--clientId clid] [--restore resfname]
[--help | -h]
πΈ DESCRIPTION πΈ
ctwm is a window manager for the X Window System. It's giving titlebars, shaped windows, virtual screens (workspaces), several forms of icon management, user-defined macro functions, click-to-type and pointer-driven keyboard focus, and user-specified key and pointer button bindings. Underneath, it's literally twm(1) (Tab Window Manager) from the MIT X11 distribution, just slightly modified to accommodate the use of several virtual screens (workspaces). It's heavily inspired by the Hewlett-Packard vuewm window manager. Also? ctwm can use coloured, shaped icons and background root pixmaps in XPM format [from Arnaud Le Hors], in JPEG using libjpeg, and xwd files. And bestie, ctwm can be compiled to use any combination of the above icon/pixmap formats. π
This program is usually started by the user's session manager or startup script. When used from xdm(1) or xinit(1) without a session manager, ctwm is frequently executed in the foreground as the last client. When run this way, exiting ctwm causes the X session to be terminated, shutting down the X server and killing off any other running clients. π
By default, application windows are surrounded by a "frame" with a titlebar at the top and a special border around the window. The titlebar contains the window's name, a rectangle that is lit when the window is receiving keyboard input, and function boxes known as "titlebuttons" at the left and right edges of the titlebar to which actions can be bound.
Pressing pointer Button1 (usually the left-most button unless it has been changed with xmodmap) on a titlebutton will invoke the function associated with the button. In the default interface, windows are iconified by clicking (pressing and then immediately releasing) the left titlebutton (which looks like a Dot). Conversely, windows are deiconified by clicking in the associated icon or entry in the icon manager (see description of the variable ShowIconManager and of the function f.showiconmgr).
Windows are resized by pressing the right titlebutton (which resembles a group of nested squares), dragging the pointer over edge that is to be moved, and releasing the pointer when the outline of the window is the desired size. Similarly, windows are moved by pressing in the title or highlight region, dragging a window outline to the new location, and then releasing when the outline is in the desired position. Just clicking in the title or highlight region raises the window without moving it.
When new windows are created, ctwm will honor any size and location information requested by the user (usually through -geometry command line argument or resources for the individual applications). Otherwise, an outline of the window's default size, its titlebar, and lines dividing the window into a 3x3 grid that track the pointer are displayed. Clicking pointer Button1 will position the window at the current position and give it the default size. Pressing pointer Button2 (usually the middle pointer button) and dragging the outline will give the window its current position but allow the sides to be resized as described above. Clicking pointer Button3 (usually the right pointer button) will give the window its current position but attempt to make it long enough to touch the bottom the screen. periodt π
β¨ OPTIONS β¨
ctwm accepts the following command line options:
--help,-hβ Print usage text.--display=dpy,-d dpyβ This option specifies the X server to use.--replaceβ This option indicates that it is not an error if a window manager is already running. In that case, the existing window manager is asked to quit, andctwmtakes its place. Available only ifctwmis built with theUSE_EWMHflag. First appeared in4.0.0.--singleβ This option indicates that only the default screen (as specified by--displayor by theDISPLAYenvironment variable) should be managed. By default,ctwmwill attempt to manage all screens on the display.--cfgchkβ This option causesctwmto only try to parse the config file, and indicate whether errors are found.--dumpcfgβ This option causesctwmto print out the compiled-in fallback config. First appeared in4.0.0.--file=filename,-f filenameβ This option specifies the name of the startup file to use.ctwmwill first try to loadfilename.num, wherenumis the screen number. If it fails, it will try to loadfilename. By default,ctwmwill look in the user's home directory for files named.ctwmrc.num,.ctwmrc,.twmrc.num, or.twmrc(wherenumis a screen number).--verbose,-vβ This option indicates thatctwmshould print error messages whenever an unexpected X Error event is received. This can be useful when debugging applications but can be distracting in regular use.--quiet,-qβ Disables--verbose(useful for overriding aliases, etc).--nom4,-nβ This option indicates thatctwmshould not filter the startup file throughm4. Available only ifctwmis built with theUSE_M4flag.--keep-defs,-kβ This option indicates thatctwmshould keep the definitions it prepends to your startup file when filtering throughm4in/tmp. Available only ifctwmis built with theUSE_M4flag.--keep=m4file,-K m4fileβ This option indicates thatctwmshould keep the result of filtering your startup file throughm4in the named file. Available only ifctwmis built with theUSE_M4flag.--monoβ Run in monochrome mode.--versionβctwmjust prints its version number.--infoβctwmprints its detailed version and compile time options.--nowelcome,-Wβ This option tellsctwmnot to display any welcome when starting.--clientId=clid,--restore=resfnameβ Something to do with session management π--xrm=resourceβ Ignored.
ctwm uses getopt_long() for parsing the command-line options. This means that args can be passed via --long=arg and --long arg, as well as -l arg and -larg, and short args can be bundled like -vnk as well as -v -n -k. iykyk β¨
π CUSTOMIZATION π
Much of ctwm's appearance and behavior can be controlled by providing a startup file in one of the following locations (searched in order for each screen being managed when ctwm begins):
$HOME/.ctwmrc.screennumberβ Thescreennumberis a small positive number (e.g.0,1, etc.) representing the screen number (e.g. the last number in theDISPLAYenvironment variablehost:displaynum.screennum) that would be used to contact that screen of the display. This is intended for displays with multiple screens of differing visual types.$HOME/.ctwmrcβ This is the usual name for an individual user's startup file.$HOME/.twmrc.screennumber,$HOME/.twmrcβ The user'stwmstartup file./usr/etc/system.ctwmrcβ If none of the preceding files are found,ctwmwill look in this file for a default configuration. This is often tailored by the site administrator to provide convenient menus or familiar bindings for novice users.
If no startup files are found, ctwm will use the built-in defaults described above. The only resource used by ctwm is bitmapFilePath for a colon-separated list of directories to search when looking for bitmap files (for more information, see the Athena Widgets manual and xrdb(1)).
ctwm startup files are logically broken up into three types of specifications: Variables, Bindings, Menus. The Variables section must come first and is used to describe the fonts, colors, cursors, border widths, icon and window placement, highlighting, autoraising, layout of titles, warping, use of the icon manager. The Bindings section usually comes second and is used to specify the functions that should be invoked when keyboard and pointer buttons are pressed in windows, icons, titles, and frames. The Menus section gives any user-defined menus (containing functions to be invoked or commands to be executed).
Variable names and keywords are case-insensitive. Strings must be surrounded by double quote characters (e.g. "blue") and are case-sensitive. A pound sign (#) outside of a string causes the remainder of the line in which the character appears to be treated as a comment.
β¨ M4 PREPROCESSING β¨
okay so bestie, ctwm can use m4(1) to pre-process its setup files π
Whether that's even a thing depends on the build option USE_M4 (it's on by default, no cap), and you can selectively kill it with the --nom4 command-line argument.
When ctwm starts up, it opens a file for input as described above. But β plot twist β it runs that file through m4 before parsing it. So you can use m4 macros to do stuff at runtime, and honestly? This makes life so easy when you're working across many different displays with different characteristics. Obsessed.
Say you want to set the lower right section of the screen to be your IconRegion (see below for the deets on the IconRegion variable), you can use m4 directives and pre-defined symbols to calculate the region you want. Like:
define(IRegion, translit(eval(WIDTH/3)*eval(HEIGHT/2)+eval(WIDTH-WIDTH/3)-0, *, x))
IconRegion "IRegion" SOUTH EAST 75 25
That right there defines the lower half and right-hand third of the screen π¦ The above makes use of symbols that are predefined for m4 by ctwm. The symbols WIDTH and HEIGHT are among those calculated by ctwm and written into a temporary file for m4 to use.
You may well find that if you research the m4(1) manual well, and understand the power of m4, this will be a very useful and powerful tool. But β and this is the important part, bestie, listen up β if you use any of the symbols which are predefined by m4, you are in severe danger! π For example, the Sun m4 predefines shift, so if you use that name in your .ctwmrc, you are out of luck. Periodt.
The following symbols are predefined by ctwm:
Hostnames
SERVERHOSTβ this variable is set to the name of the machine that is running the X server.CLIENTHOSTβ the machine that is running the clients. (ie,ctwm)HOSTNAMEβ as of 4.0.2, this is a duplicate ofCLIENTHOST. In prior versions,gethostbyname()was used to attempt to derive a canonical or fully-qualified version of the hostname.
User Info
USERβ the name of the user running the program. Value taken from environmental variables$USERand$LOGNAME, or from the passwd lookup for your uid if they don't exist. Falls back to "unknown" if all methods fail.HOMEβ the user's home directory. Gotten from the environment var$HOME.
ctwm info
TWM_TYPEβ tells which twm offshoot is running. It will always be set to the string"ctwm"in this program. This is useful for protecting parts of your.twmrcfile that twm proper won't understand (likeWorkSpaces) so that it is still usable with other twm programs. iconic tbh.TWM_VERSIONβ tells whichctwmversion is running in the form of a floating point number.CTWM_VERSION_MAJOR,CTWM_VERSION_MINOR,CTWM_VERSION_PATCH,CTWM_VERSION_ADDLβ gives thectwmversion split out. e.g., for a version like"3.8.2-beta1", the_MAJORwill be"3",_MINOR"8",_PATCH"2", and_ADDL"-beta1". Final releases will generally have an emptyCTWM_VERSION_ADDL; it's mostly meaningful in dev and betas. For comparison, in this situation,TWM_VERSIONwill be"3.8.2".
The CTWM_VERSION_* variables first appeared in 4.0.0.
X server info
VERSIONβ the X major protocol version. As seen byProtocolVersion(3).REVISIONβ the X minor protocol revision. As seen byProtocolRevision(3).VENDORβ the vendor of your X server. For example:MIT X Consortium.RELEASEβ the release number of your X server. For MIT X11R5, this is5.
Display info
WIDTHβ the width of your display in pixels.HEIGHTβ the height of your display in pixels.X_RESOLUTIONβ the X resolution of your display in pixels per meter.Y_RESOLUTIONβ the Y resolution of your display in pixels per meter.PLANESβ the number of bit planes your display supports in the default root window.BITS_PER_RGBβ the number of significant bits in an RGB color. (log base 2 of the number of distinct colors that can be created. This is often different from the number of colors that can be displayed at once.)CLASSβ your visual class. Will return one ofStaticGray,GrayScale,StaticColor,PseudoColor,TrueColor,DirectColor, or, if it cannot determine what you have,NonStandard.COLORβ this will be either"Yes"or"No". This is just a wrapper around the above definition. Returns"Yes"on*Color, and"No"onStaticGrayandGrayScale.
ctwm compile-time options
XPMβ is defined only ifctwmwas compiled with XPM support.PIXMAP_DIRECTORYβ the directory where thectwmpictures are installed.JPEGβ is defined only ifctwmwas compiled with JPEG support.SOUNDSβ is defined only ifctwmwas compiled with SOUND support.EWMHβ is defined only ifctwmwas compiled with EWMH support. First appeared in 4.0.0.I18Nβ is defined ifctwmwas compiled with I18N support. This is no longer optional since 3.8 and is always compiled in. The definition will be removed in a future version.
Obsolete options
GNOMEβ defined whenctwmwas compiled with GNOME1 support. Removed after 3.8.2.TWM_CAPTIVEβ this was either"Yes"or"No"."Yes"if the currentctwmis captive (flag-w),"No"in the other case. Removed in 4.1.0.TWM_CAPTIVE_NAMEβ defined only ifTWM_CAPTIVEis also defined. Contains the name of the captivectwm(flag--name). Removed in 4.1.0.
π VARIABLES π
Many of the aspects of ctwm's user interface are controlled by variables that may be set in the user's startup file. Some of the options are enabled or disabled simply by the presence of a particular keyword. Other options require keywords, numbers, strings, or lists of all of these.
Lists are surrounded by braces and are usually separated by whitespace or a newline. For example:
AutoRaise { "emacs" "XTerm" "Xmh" }
or
AutoRaise
{
"emacs"
"XTerm"
"Xmh"
}
When a variable containing a list of strings representing windows is searched (e.g. to determine whether or not to enable autoraise as shown above), a string must be an exact, case-sensitive match to the window's name (given by various window properties, such as WM_NAME), resource name or class name (both given by the WM_CLASS window property). The preceding example would enable autoraise on windows named "emacs" as well as any xterm (since they are of class "XTerm") or xmh windows (which are of class "Xmh"). π
String arguments that are interpreted as filenames (see the Pixmaps, Cursors, and IconDirectory below) will prepend the user's directory (specified by the HOME environment variable) if the first character is a tilde (~). If, instead, the first character is a colon (:), the name is assumed to refer to one of the internal bitmaps that are used to create the default titlebars symbols: :xlogo or :iconify (both refer to the X used for the iconify button), :resize (the nested squares used by the resize button), and :question (the question mark used for non-existent bitmap files).
The following variables may be specified at the top of a ctwm startup file. Lists of window name prefix strings are indicated by win-list. Optional arguments are shown in square brackets:
AlwaysOnTop { win-list }β this variable specifies a list of windows (all windows if the list is defaulted) thatctwmwill try its best to maintain on top of others. This doesn't work in all case.AlwaysShowWindowWhenMovingFromWorkspaceManagerβ whenReallyMoveInWorkspaceManageris present and the user is moving a window from theWorkSpaceMap,ctwmdisplay the actual window only if it crosses the current active workspace. IfAlwaysShowWindowWhenMovingFromWorkspaceManageris present, the actual window is always visible during the move, regardless of whether it crosses the current workspace or not. The Shift key toggles this behaviour.AlwaysSqueezeToGravity [{ win-list }]β this variable indicates thatctwmshould obey window gravity when squeezing a window even when the window has a titlebar. Normally,ctwmwill always squeeze a window that has a titlebar toward the north. The optional win-list may be used to control which windows this applies on.AnimationSpeed speedβ the speed argument is a non-negative integer. It determines the number of times a second animations (if any) are updated. If speed is0, animations are freezed. The default value is0.AutoFocusToTransientsβ transient windows get focus automatically when created. Useful with programs that have keyboard shortcuts that pop up windows. π₯AutoLower [{ win-list }]β this variable specifies a list of windows (all windows if the list is defaulted) to be automatically lowered whenever the pointer leaves a window. This action can be interactively enabled or disabled on individual windows using the functionf.autolower.AutoOccupyβ this variable specifies that clients will automatically change their occupation when their name or icon name changes. The new occupation will be recalculated from theOccupyandOccupyAllfields in the.ctwmrcfile.AutoPopup [{ win-list }]β this variables specifies a list of windows which will be deiconified whenever their name changes. Can be used forxconsole, for instance, which adds a"*"to its name whenever something gets displayed on the console, or for various mail readers who change their icons depending on the presence of unread mail.
First appeared in 4.0.0.
AutoPriorityβ this variable specifies thatctwmshould automatically recompute the priority of a window (and its associated icon) when its name changes. See alsoOnTopPriority.
First appeared in 4.0.0.
AutoRaise [{ win-list }]β this variable specifies a list of windows (all windows if the list is defaulted) to be automatically raised whenever the pointer has come to rest in a window for the amount of time specified by theRaiseDelayvariable. This action can be interactively enabled or disabled on individual windows using the functionf.autoraise.AutoRaiseIconsβ icons are raised when the cursor enters it. Useful withShrinkIconTitles. β¨
AutoRelativeResize
okay so this one is a whole vibe for the drag-girlies π
it says that when you're dragging out a window size (either that first sizing moment with pointer Button2, or any time you're resizing it), ctwm should not sit there waiting for your pointer to cross the window edges. nope. instead, just moving the pointer automatically drags the nearest edge (or edges!) along by the same amount. this is so handy for resizing windows that hang off the edge of the screen, fr. but β plot twist β if the pointer is chillin' in the center of the window, or if the resize got started by pressing a titlebutton, ctwm will still wait for the pointer to cross a window edge (to prevent accidents π). this option is especially chef's-kiss for people who love the press-drag-release method of sweeping out window sizes. periodt
AutoSqueeze { win-list }
these windows get auto-squeezed (peep f.squeeze), like they automatically unsqueeze when they get focus and get squeezed when they lose it. so useful for the workspace manager bestie β¨ heads up tho: not authorized for icon managers.
BackingStore
turns on backing store usage on menus and workspace map windows π see also NoBackingStore. added in 4.0.0; in previous versions this was literally the default.
BeNiceToColormap
by default, new colors get allocated for shadows when a 3D look is used, but when you specify BeNiceToColormap, ctwm uses stipling instead of new colors. the effect is less beautiful π but acceptable. in this case ClearShadowContrast and DarkShadowContrast have no effects β none. zero. nada.
BorderBottom pixels
this one sets the width in pixels of a forbidden zone at the bottom of the screen. all the constrained window functions (f.movepack, f.move with DontMoveOff, etc...) will treat this zone as offscreen. default is 0.
BorderColor string [{ wincolorlist }]
sets the default color of the border placed around all non-iconified windows π and it may only be given within a Color or Monochrome list. the optional wincolorlist lets you hand out a list of window and color name pairs so different types of windows get their own border colors. like:
BorderColor "gray50"
{
"XTerm" "red"
"xmh" "green"
}
the default is βblackβ.
BorderLeft pixels
width in pixels of a forbidden zone at the left of the screen. all constrained window functions (f.movepack, f.move with DontMoveOff, etc...) consider this zone offscreen. default is 0.
BorderResizeCursors
tells ctwm to use resizing cursors when the pointer is on the window border π¦ bestie you'll wanna use this when you've bound a button to f.resize in the frame context, trust.
BorderRight pixels
width in pixels of a forbidden zone at the right of the screen. all constrained window functions (f.movepack, f.move with DontMoveOff, etc...) consider this zone offscreen. default is 0.
BorderShadowDepth pixels
sets the depth of the shadow ctwm uses for 3D window borders, when UseThreeDBorders is selected β¨
BorderTileBackground string [{ wincolorlist }]
the default background color in the gray pattern used in unhighlighted borders (only if NoHighlight hasn't been set!), and may only be given within a Color or Monochrome list. the optional wincolorlist lets you do per-window colors. the default is βwhiteβ.
BorderTileForeground string [{ wincolorlist }]
the default foreground color in the gray pattern used in unhighlighted borders (again, only if NoHighlight hasn't been set), and again, may only be given within a Color or Monochrome list. the optional wincolorlist allows per-window colors. the default is βblackβ.
BorderTop pixels
width in pixels of a forbidden zone at the top of the screen. all constrained window functions (f.movepack, f.move with DontMoveOff, etc...) will consider this zone as offscreen. default is 0.
BorderWidth pixels
the width in pixels of the border surrounding all client window frames, if ClientBorderWidth has not been specified. this value is also used to set the border size of windows created by ctwm (like the icon manager, iykyk). the default is 2.
ButtonIndent pixels
the amount by which titlebuttons should be indented on all sides. positive values make the buttons smaller than the window text and highlight area, so they stand out β¨ setting this and the TitleButtonBorderWidth variables to 0 makes titlebuttons be as tall and wide as possible. the default is 1 if UseThreeDTitles is not set, and 0 if it is set.
CenterFeedbackWindow
the moving and resizing information window gets centered in the middle of the screen instead of the top left corner. main character placement, honestly π
ClearShadowContrast contrast
tells ctwm how to calculate the clear shadow color for 3D items. the value is comprised between 0 and 100. the formula used is:
clear.{RGB} = (65535 - color.{RGB}) * (contrast / 100).
has no effect if BeNiceToColormap is active π«Ά
ClickToFocus
focus windows by clicking on them, rather than merely mousing over them. no more accidental focus jumps, we love boundaries π
ClientBorderWidth
this one says the border width of a window's frame should be set to the initial border width of the window, rather than to the value of BorderWidth. if Use3DBorders is set, this variable is automatically unset. the universe decided that for you β¨
Color { colors-list }
sets a list of color assignments to be made if the default display can do more than simple black and white π the colors-list is made up of these color variables and their values: DefaultBackground, DefaultForeground, MenuBackground, MenuForeground, MenuTitleBackground, MenuTitleForeground, and MenuShadowColor. these next color variables may also be given a list of window and color name pairs so you can do per-window colors (peep BorderColor for the deets): BorderColor, IconManagerHighlight, BorderTileBackground, BorderTileForeground, TitleBackground, TitleForeground, IconBackground, IconForeground, IconBorderColor, IconManagerBackground, and IconManagerForeground. for example:
Color
{
MenuBackground "gray50"
MenuForeground "blue"
BorderColor "red" { "XTerm" "yellow" }
TitleForeground "yellow"
TitleBackground "blue"
}
all of these color variables may also be specified for the Monochrome variable, so the same initialization file works on both color and monochrome displays. iconic, honestly π
ConstrainedMoveTime milliseconds
the length of time between button clicks needed to begin a constrained move operation. double clicking within this amount of time when invoking f.move or other similar moving functions will cause the window to only be moved in a horizontal or vertical direction. setting this value to 0 will disable constrained moves. the default is 400 milliseconds.
ngl, this also affects double clicking in f.raiseorsqueeze, and potentially other places that need to track double clicks. it should probably be renamed π
Cursors { cursor-list }
the glyphs ctwm should use for various pointer cursors π each cursor may be defined either from the cursor font or from two bitmap files. shapes from the cursor font may be specified directly as:
cursorname "string"
where cursorname is one of the cursor names listed below, and string is the name of a glyph as found in the file <X11/cursorfont.h> (without the βXC_β prefix). if the cursor is to be defined from bitmap files, you use this syntax instead:
cursorname "image" "mask"
the image and mask strings specify the names of files containing the glyph image and mask in bitmap(1) form. the bitmap files are located in the same manner as icon bitmap files. the following example shows the default cursor definitions:
Cursors
{
Frame "top_left_arrow"
Title "top_left_arrow"
Icon "top_left_arrow"
IconMgr "top_left_arrow"
Move "fleur"
Resize "fleur"
Menu "sb_left_arrow"
Button "hand2"
Wait "watch"
Select "dot"
Destroy "pirate"
}
DarkShadowContrast contrast
tells ctwm how to calculate the dark shadow color for 3D items. the value is comprised between 0 and 100. the formula used is:
dark.{RGB} = color.{RGB} * ((100 - contrast) / 100),
has no effect if BeNiceToColormap is active π¦
DecorateTransients
transient windows (the ones containing a WM_TRANSIENT_FOR property) should have titlebars. as of 4.0.0 this is the default β¨
DefaultBackground string
the background color used for sizing and information windows. the default is βwhiteβ.
DefaultForeground string
the foreground color used for sizing and information windows. the default is βblackβ.
DontIconifyByUnmapping { win-list }
a list of windows that should not be iconified by simply unmapping the window (which is what would happen if IconifyByUnmapping had been set). this is frequently used to force some windows to be treated as icons while other windows are handled by the icon manager π
DontMoveOff
windows should not be allowed to be moved off the screen. it can be overridden by the f.forcemove function. rules are rules... until they're not π
DontNameDecorations
disables setting WM_NAME properties on the various decoration windows ctwm puts around the windows it manages. these are handy for keeping track of what's what when you're poking through the list of windows on the screen, but they can confuse some tools that don't expect to find them there (xwit is known to be one of them π). first appeared in 4.0.2.
π DontPaintRootWindow
Tells ctwm to not paint the root window, no matter what you said in the Workspaces spec. Super handy when you want pixmaps chilling in the Workspace Map but not splashed across the root window. iykyk π
πΈ DontSave { win-list }
These windows will not have their characteristics saved for the session manager. Bye bestie, no memories kept. π
π¦ DontSetInactive { win-list }
These windows will not be set to InactiveState when they become invisible because of a workspace change. This exists bc some ill-behaved clients (Frame5) literally cannot handle it. Not their fault, we're just being nice. π«Ά
β¨ DontShowWelcomeWindow
Does exactly what the -W option does: the welcome window does not get shown. No hello for you. π
π DontSqueezeTitle [{ win-list }]
Says titlebars should not be squeezed down to their minimum size (that whole thing is described under SqueezeTitle below π). If you hand over the optional window list, only those windows get spared from the squeezing. Everyone else, get squished. π
π DontToggleWorkSpaceManagerState
Turns off the feature that toggles the workspace manager state to/from map/button state when you press ctrl and the workspace manager window is in focus. So if you've been accidentally flipping it β this is your girl. π
π§ DontWarpCursorInWMap
Tells ctwm not to warp the cursor to the corresponding actual window when you click a little window inside the workspace map. Stay put, cursor. π¦
β EWMHIgnore { message-types }
Sets the EWMH message types that ctwm will ignore. Only valid if it was built with USE_EWMH (currently on by default). Here's every single valid option, all lined up:
EWMHIgnore
{
# Window states
"STATE_MAXIMIZED_VERT"
"STATE_MAXIMIZED_HORZ"
"STATE_FULLSCREEN"
"STATE_SHADED"
"STATE_ABOVE"
"STATE_BELOW"
}
First appeared in 4.0.0. π
π₯ ForceFocus [{ win-list }]
Gives focus to windows whether they asked for it or not. Occasionally useful with windows that tell us not to give them focus, but still need it and break without it β messy behavior, but okay. The optional window list lets you pick exactly which windows get this treatment.
First appeared in 4.0.0. In prior versions, a variant of this functionality was unconditionally enabled. π
π ForceIcons
Says that icon pixmaps specified in the Icons variable should override any client-supplied pixmaps. Ours wins, periodt. β¨
πΈ FramePadding pixels
Specifies the distance between the titlebar decorations (the button and the text) and the window frame. Default is 2 pixels when UseThreeDTitles is not set, and 0 when it is set. Cute little breathing room. π
π
GrabServer
Says ctwm should grab the X server (which blocks all events except ours) when popping up menus and moving opaque windows. See also NoGrabServer. Added in 4.0.0; in previous versions, this was the default.
π¦ IconBackground string [{ win-list }]
Sets the background color of icons, and can only be specified inside a Color or Monochrome list. The optional win-list is a list of window names and colors so you can do per-window colors. See the BorderColor variable for the full description of the win-list. Default is "white". π€
π IconBorderColor string [{ win-list }]
Sets the color of the border used for icon windows, and can only be specified inside a Color or Monochrome list. The optional win-list is a list of window names and colors for per-window colors. See the BorderColor variable for the full win-list description. Default is "black". π€
β¨ IconBorderWidth pixels
The width in pixels of the border surrounding icon windows. Default is 2.
π IconDirectory string
Specifies the directory that should be searched if a bitmap file can't be found in any of the directories listed in the bitmapFilePath resource. Last-resort bestie. π«Ά
π IconFont string
The font used to display icon names inside icons. Default is "variable".
π IconForeground string [{ win-list }]
The foreground color used when displaying icons, and can only be specified inside a Color or Monochrome list. Optional win-list = window names and colors for per-window flair. See BorderColor for the full win-list description. Default is "black". π€
π§ IconifyByUnmapping [{ win-list }]
Says windows should be iconified by being unmapped, without trying to map any icons at all. This assumes you're gonna remap the window through the icon manager, the f.warpto function, or the TwmWindows menu. If the optional win-list is given, only those windows get iconified by simply unmapping.
β οΈ Windows that have both this and theIconManagerDontShowoptions set may not be accessible at all if no binding to theTwmWindowsmenu is set in your startup file. Be careful bestie. π
πΈ IconifyStyle string
Where string is one of "normal", "mosaic", "zoomin", "zoomout" or "sweep". Tells ctwm to use some fancy graphical effects when iconifying windows. It's giving main character energy. π
π¦ IconJustification string
Where string is one of "left", "center" or "right". Tells ctwm how to justify the icon image against the icon title (if there even is one).
π IconManagerBackground string [{ win-list }]
The background color for icon manager entries, and can only be specified inside a Color or Monochrome list. Optional win-list = window names and colors for per-window colors. See BorderColor for the complete win-list description. Default is "white". π€
β¨ IconManagerDontShow [{ win-list }]
Says the icon manager should not display any windows. If the optional win-list is given, only those windows are hidden. This one exists to keep windows that are rarely iconified (like xclock or xload) from taking up space in the icon manager. Not everything deserves the spotlight. π
π IconManagerFont string
The font used when displaying icon manager entries. Default is "variable".
π IconManagerForeground string [{ win-list }]
The foreground color for displaying icon manager entries, and can only be specified inside a Color or Monochrome list. Optional win-list = window names and colors for per-window colors. See BorderColor for the full win-list description. Default is "black". π€
π IconManagerGeometry string [ columns ]
Sets the geometry of the icon manager window. The string argument is a standard geometry specification that gives the initial full size of the icon manager. The icon manager window then gets broken into columns pieces and scaled according to how many entries are in the icon manager. Extra entries get wrapped to form additional rows. The default number of columns is 1.
When XrandR is compiled, the geometry can be relative to a monitor β just prefix its name (visible with the xrandr(1) command line) followed by :. That name gets ignored when XrandR isn't available. π¦
π IconManagerHighlight string [{ win-list }]
The border color used when highlighting the icon manager entry that currently has the focus, and can only be specified inside a Color or Monochrome list. Optional win-list = window names and colors for per-window colors. See BorderColor for the complete win-list description. Default is "black". π€
π§ IconManagers { iconmgr-list }
Specifies a list of icon managers to create. Every item in the iconmgr-list has this format:
"winname" ["iconname"] "geometry" columns
Where winname is the name of the windows that should go into this icon manager, iconname is the name of that icon manager window's icon, geometry is a standard geometry specification, and columns is the number of columns in this icon manager (as described in IconManagerGeometry).
When XrandR is compiled, the geometry can be relative to a monitor β prefix its name (visible with the xrandr(1) command line) followed by :. That name gets ignored when XrandR isn't available. For example:
IconManagers
{
"XTerm" "=300x5+800+5" 5
"myhost" "HDMI2:400x5+100+5" 2
}
Clients whose name or class is "XTerm" get an entry created in the "XTerm" icon manager. Clients whose name was "myhost" would be put into the "myhost" icon manager. Organized. Slay. π
πΈ IconManagerShadowDepth pixels
The depth of the shadow ctwm uses for 3D IconManager entries, when UseThreeDIconManagers is selected. β¨
π IconManagerShow { win-list }
Specifies a list of windows that should appear in the icon manager. Used together with the IconManagerDontShow variable, only the windows in this list will be shown in the icon manager. The chosen few. π
π¦ IconMenuDontShow { win-list }
Don't show the name of these windows in the TwmIcons menu. Not invited to that party. π
IconRegion geomstring vgrav hgrav gridwidth gridheight [iconjust] [iconregjust] [iconregalign] [{ win-list }]β okay bestie, this one sets up a whole zone on the root window where icons get parked when the client didn't bother telling ctwm where it wanted its icon to live πΊοΈ. Thegeomstringis a quoted string with a standard geometry spec in it. When XrandR is compiled in, you can make that geometry relative to a monitor by prefixing the monitor's name (you can peek at those with thexrandr(1)command line) followed by:. That name just gets ignored when XrandR isn't available, no cap. If you hand it more than oneIconRegionline, icons spill into the next icon region once the first one's full β iconic overflowing behavior fr fr. Thevgravargument should be eitherNorthorSouth, and it decides whether icons start filling in from the top or the bottom of the region. Same energy forhgrav, which should be eitherEastorWest, and controls whether icons fill in from the left or from the right. Icons get laid out in a grid inside the region, with cellsgridwidthpixels wide andgridheightpixels high. The optionalwin-listargument tells ctwm that if one of those windows gets iconified and there's room in this icon region for its icon, then put it right here π . And the optionaliconjust,iconregjustandiconregalignlet you set specific values ofIconJustification,IconRegionJustificationandIconRegionAlignementjust for this one IconRegion. Very bespoke, we love.IconRegionAlignement stringβ herestringis either"top","center""bottom"or"border". It tells ctwm how to align icons inside their lil spot in the IconRegion β¨. If you sayβborderβ, the justification becomesβtopβwhen the icon region gravity isβnorthβ, andβbottomβwhen the icon region gravity isβsouthβ. It's giving adaptive.IconRegionJustification stringβ same deal, butstringhere is either"left","center""right"or"border". It tells ctwm how to justify icons inside their place in the IconRegion π. Ifβborderβis given, the justification isβleftβwhen the icon region gravity isβwestβandβrightβwhen the icon region gravity isβeastβ. Mirror logic, obsessed.Icons { win-list }β this variable hands over a list of window names plus the bitmap filenames that should be used as their icons. Like, for example:
Icons
{
"XTerm" "xterm.icon"
"xfd" "xfd_icon"
}
Windows that match βXTermβ and would not be iconified by unmapping would try to use the icon bitmap in the file βxterm.iconβ. And if ForceIcons is specified, that bitmap gets used even if the client already requested its own icon pixmap π€. No negotiation.
IconSize stringβ (only if built withUSE_EWMH) herestringis of the form"<width>x<height>"or"size"for a square size. This sets the preferred size of icons picked from the EWMH window property_NET_WM_ICONπΌοΈ. If an icon with the exact size isn't available, one with the nearest (area) size gets chosen instead. First appeared in 4.0.0. She's new-ish but she knows what she wants.IgnoreCaseInMenuSelectionβ this one kicks in when you're moving the pointer around inside a menu with the keyboard β¨οΈ. When you type a letter, the pointer hops to the next entry starting with that letter. IfIgnoreCaseInMenuSelectionis present, that selection ignores the case of that first letter. SoaandAare the same girl, periodt.IgnoreLockModifierβ if present, all bindings (buttons and keys) will ignore theLockMaskπ. Super useful if you're a caps lock gremlin and you don't wanna define all your bindings twice. We've all been there.IgnoreModifierβ all bindings (buttons and keys) will ignore the modifiers you specified. Useful when you use caps locks or num locks. And bestie, you don't needIgnoreLockModifierany more once you have this option β she does it all π .
IgnoreModifier { lock m2 }
IgnoreTransientβ a list of windows for which to ignore transients π«π».
IgnoreTransient { "Wine" }
InterpolateMenuColorsβ this variable says menu entry colors should be interpolated between the entry-specified colors π. So in the example below:
Menu "mymenu"
{
"Title" ("black":"red") f.title
"entry1" f.nop
"entry2" f.nop
"entry3" ("white":"green") f.nop
"entry4" f.nop
"entry5" ("red":"white") f.nop
}
the foreground colors for βentry1β and βentry2β get interpolated between black and white, and the background colors between red and green. Similarly, the foreground for βentry4β lands half-way between white and red, and the background lands half-way between green and white π¨. It's giving gradient era.
MakeTitle { win-list }β this variable gives you a list of windows that should get a titlebar placed on them π. It's how you request titles on specific windows whenNoTitlehas been set. Exceptions to the rule, we stan.MapWindowBackground color [{ win-list }]β this one sets the background colors to use for the small windows in the workspace map window πΊοΈ, and it may only be specified inside of aColororMonochromelist. The optionalwin-listis a list of window names and colors, so you can do per-window colors if you want. If there's neitherMapWindowBackgroundnorMapWindowForeground, the window title colors get used instead. Default behavior, no stress.MapWindowCurrentWorkSpace { border_color [background] [foreground] [bitmap] }β this specifies the appearance of the map window that corresponds to the current workspace β¨. Main character map square energy.MapWindowDefaultWorkSpace { border_color [background] [foreground] [bitmap] }β and this one specifies the appearance of the map window for the workspaces other than the current workspace, when no root background info has been handed to ctwm in theWorkSpacecommand π. Not used in other cases, just so you know.MapWindowForeground color [{ win-list }]β the foreground color twin ofMapWindowBackgroundπ. This variable sets the foreground colors for the small windows in the workspace map window, and again it may only be specified inside of aColororMonochromelist. The optionalwin-listis a list of window names and colors so you can set per-window colors. And if there's neitherMapWindowBackgroundnorMapWindowForeground, the window title colors get used.MaxIconTitleWidth widthβ the integer argument tells ctwm the maximum width to use for an icon title π. If an icon title is bigger thanwidth, it gets truncated. Sorry girl, cut off.MaxWindowSize stringβ this variable specifies a geometry where the width and height give the maximum size for a given window π. Typically used to restrict windows to the size of the screen. The default isβ30000x30000β. Big enough for basically everything, lowkey.MenuBackground stringβ this sets the background color used for menus, and it can only be specified inside of aColororMonochromelist π¨. The default isβwhiteβ.MenuFont stringβ this sets the font to use when displaying menus π€. The default isβvariableβ.MenuForeground stringβ this sets the foreground color used for menus, and can only be specified inside of aColororMonochromelist. The default isβblackβ.MenuShadowColor stringβ this sets the color of the shadow behind pull-down menus and can only be specified inside of aColororMonochromelist π. The default isβblackβ.MenuShadowDepth pixelsβ this sets the depth of the shadow ctwm uses for 3D menus, back whenUseThreeDMenusis selected π. Depth, she has it.MenuTitleBackground stringβ this sets the background color forf.titleentries in menus, and can only be specified inside of aColororMonochromelist π. The default isβwhiteβ.MenuTitleForeground stringβ and this sets the foreground color forf.titleentries in menus, and can only be specified inside of aColororMonochromelist. The default isβblackβ.MonitorLayout { monitor-list }β okay so this one lets you manually configure what ctwm considers to be the list of monitors π₯οΈπ₯οΈ. If XRANDR support is compiled in (which is the default as of 4.1.0), and the RANDR extension is available on your server, then ctwm will just use that to figure out the size and layout of your monitors. But if either of those isn't the case, or you just wanna override what it returns, you can specify the names and layouts of your desiredβmonitorsβright here. For instance, if you've got one super wide monitor and you'd rather treat it as several narrower side-by-side monitors, you could use this to tell ctwm to see it that way π:
MonitorLayout
{
# Imagine a 5000x1000 monitor, that we want to split into two 2k wide
# sections at the far left and right, with a 1k wide section in the
# middle.
"Left:2000x1000+0+0"
"1000x1000+2000+0" # Middle section unnamed
"Right:2000x1000+3000+0"
}
And with m4 support, you could even make it automatically split your full display into 2 βmonitorsβ πͺ:
define(LeftWidth, eval(WIDTH / 2))dnl
define(RightWidth, eval(WIDTH - LeftWidth))dnl
MonitorLayout
{
"`AutoL:'LeftWidth`x'HEIGHT`+0+0'"
"`AutoR:'RightWidth`x'HEIGHT`+'LeftWidth`+0'"
}
Monochrome { colors }β this variable specifies a list of color assignments that should be made if the screen has a depth of 1 β«βͺ. See the description ofColorfor the deets.MoveDelta pixelsβ this variable sets the number of pixels the pointer has to move before thef.movefunction starts working π±οΈ. Also see thef.deltastopfunction. The default is zero pixels.MovePackResistance pixelsβ this sets the number of pixels of the movepack and movepush resistance π. Seef.movepackandf.movepush.MoveOffResistance pixelsβ this sets the number of pixels of the moveoff resistance. Ifpixelsis positive,DontMoveOffwill only stop you from going off the edge if you're withinnpixels off the edge π¬. If you go further than that,DontMoveOffgives up and lets you go as far as you want. Andf.forcemovestill lets you totally ignoreDontMoveOffwhenever. A negative value puts you back intoβnever moveoffβmode (and that's the default). Choose your fighter.MWMIgnoreβ sets the Motif window manager hints that ctwm will ignore π. The example below shows all the valid options:
MWMIgnore
{
# en/disable window borders
"DECOR_BORDER"
# en/disable titlebars
"DECOR_TITLE"
}
First appeared in 4.0.0.
NoBackingStoreβ bestie, this one tells ctwm that its menus should not request backing store, and the whole point is to keep menu repainting to a minimum. π This is the move for servers that can repaint faster than they can actually handle backing store. See alsoBackingStore. As of4.0.0this is the default. β¨NoBorder { win-list }β these windows get no borders, periodt. π« If you want no borders on all windows, use theBorderWidthkeyword instead. πNoCaseSensitiveβ this one says: ignore case when sorting icon names in an icon manager. π Typically used with apps that capitalize the first letter of their icon name (rude of them honestly). SoXTermandxtermstop fighting.NoDecorateTransientsβ transient windows (that's windows with aWM_TRANSIENT_FORproperty set, iykyk) should be ignored by ctwm β as in, not given decorations at all. See alsoDecorateTransients. Added in4.0.0; in previous versions this was the default. πNoDefaultsβ ctwm should not supply the default titlebuttons and bindings. β οΈ Only use this if your startup file contains a completely new set of bindings and definitions, otherwise you're just gonna have a bad time, fr fr.NoGrabServerβ ctwm should not grab the server when popping up menus and moving opaque windows. As of4.0.0this is the default. π¦NoHighlight [{ win-list }]β borders should not be highlighted to track where the pointer is. If the optionalwin-listis given, highlighting gets disabled only for those windows. Lowkey important detail: when the border is highlighted, it's drawn in the currentBorderColor. When it's not highlighted, it's stippled with a gray pattern using the currentBorderTileForegroundandBorderTileBackgroundcolors. π¨NoIconTitle [{ win-list }]β icons should not display the icon name of the client. If the optionalwin-listis given, only those clients go title-less. πNoIconManagerFocusβ ctwm will not set the focus on the corresponding window when the pointer is in an IconManager. πNoIconManagersβ no icon manager should be created. At all. None. Zero. πNoImagesInWorkSpaceManagerβ turns off displaying background images in theWorkSpaceMap. Instead, only the colors defined inWorkSpacesget used as the background in theWorkSpaceMap. πNoMenuShadowsβ menus should not have drop shadows drawn behind them. Typically used with slower servers, since it speeds up menu drawing β at the expense of making the menu slightly harder to read. π«ΆNoOpaqueMove [{ window-list }]β the counterpart ofOpaqueMove. SeeOpaqueMove. πNoOpaqueResize [{ window-list }]β the counterpart ofOpaqueResize. SeeOpaqueResize. πNoRaiseOnDeiconifyβ windows that get deiconified should not be raised. Keep them humble. πNoRaiseOnMoveβ windows should not be raised when moved. Typically used so windows can slide underneath each other. πNoRaiseOnResizeβ windows should not be raised when resized. Typically used so windows can be resized underneath each other. β¨NoRaiseOnWarpβ windows should not be raised when the pointer is warped into them with thef.warptofunction. β οΈ Heads up bestie: if this option is set, warping to an occluded window may result in the pointer ending up in the occluding window instead of the desired window β which causes unexpected behavior withf.warpring. πNoRestartPreviousStateβ don't even try to regenerate the state the screen was in before the previous window manager shut down. SeeRestartPreviousStatefor the details. Added in4.0.0; in previous versions this was the default. πNoSaveUndersβ menus should not request save-unders to minimize window repainting following menu selection. Typically used with displays that can repaint faster than they can handle save-unders. π¦NoShowOccupyAllβ this one specifies thatOccupyAllwindows won't be displayed in theWorkSpaceMapwindow. π«₯NoSortIconManagerβ entries in the icon manager should be appended in the order they show up. See alsoSortIconManager. Added in4.0.0; in previous versions this was the default. πNoStackMode [{ win-list }]β client window requests to change the stacking order should be ignored. If the optionalwin-listis given, only requests on those windows get ignored. Typically used to stop applications from relentlessly popping themselves to the front of the window stack. (Sir, this is a Wendy's. π) If you want that behavior, this is your girl.NoTitle [{ win-list }]β windows should not have titlebars. If the optionalwin-listis given, only those windows go titlebar-less.MakeTitlemay be used together with this option to force titlebars onto specific windows. πNoTitleFocusβ ctwm should not set keyboard input focus to each window as it is entered. Normally, ctwm sets the focus so that focus and key events from the titlebar and icon managers get delivered to the application. But if the pointer is moved quickly and ctwm is slow to respond, input can be directed to the old window instead of the new one. π This option is typically used to prevent this "input lag" and to work around bugs in older applications that have problems with focus events.NoTitleHighlight [{ win-list }]β the highlight area of the titlebar (the thing that shows which window currently has the input focus) should not be displayed. If the optionalwin-listis given, only those windows lose their highlight areas. This option and theSqueezeTitleoptions can be set together to substantially reduce the amount of screen space titlebars eat up. π₯NoWarpToMenuTitleβ the cursor should not be warped to the title of a menu which doesn't have room to drop down below the current cursor position. π±οΈOccupy { occupy-list }β this variable specifies which windows occupy which workspaces at startup. β¨
occupy-list consists of entries of the form:
[Window] win-name { wspc1 wspc2 ... }
or Workspace wspc-name { win1 win2 ... }
Example:
Occupy
{
"xload" {"all"}
Window "xterm" {"here" "there" "elsewhere"}
"xv" {"images"}
WorkSpace "images" {"xloadimage"}
}
If all is given for the workspace name (in either form), the named window[s] will be put in all workspaces, exactly as if they were listed in OccupyAll. π And if the workspace name begins with ws:, the workspace name will be looked up without the prefix first. That is, if the given name is ws:abc, it will first look for a workspace called abc, and assign to that if found. Else it falls back to looking for the name ws:abc. π§
Note : TheOccupydeclaration should come after theWorkSpacesdeclaration. π
OccupyAll { window-list }β this variable specifies a list of windows that will occupy all workspaces at startup. π
window-list is a list of window names.
Example:
OccupyAll
{
"xload"
"xbiff"
"xconsole"
}
Note : TheOccupyAlldeclaration should come after theWorkSpacesdeclaration. π
OnTopPriority [Icons] priority [ { win-list } ]β ctwm lets you put windows into several overlapping priority planes, going from-8to+8, which makes it possible to have windows that stay on top, or windows that are kept in the background. π«Ά Ifwin-listis present, it specifies which windows should be put in the priority plane. Else, the priority sets the default value to use (the default default is0). TheIconsparameter, if present, indicates that the preference described applies to icons rather than to windows. π
Example:
OnTopPriority Icons -1 # place icons a little in the background
OnTopPriority Icons 1 # place mail icons on top of normal windows
{
"Exmh"
"xbiff"
}
OnTopPriority 8 # keep these always on top of other windows
{
"Emacs Icon Manager" "WorkSpaceManager"
"TWM Icon Manager" "XDaliClock"
}
First appeared in 4.0.0. π
OpaqueMove [{ window-list }]β this variable says thef.movefunction should actually move the window instead of just drawing an outline, so you can immediately see what the window is gonna look like in the new position. π Typically used on fast displays (especially ifNoGrabServeris set). The optional window list parameter means only windows in this list get actually moved in opaque mode. TheNoOpaqueMovecounterpart is also available. π
As of 4.0.0 this is enabled by default. slay
OpaqueMoveThreshold thresholdβ the integer parameter here is a percentage, and it means only windows (eligible for opaque moving) with a surface smaller than this percentage of the surface of the screen should actually be moved in opaque mode. The default is200. Since4.0.0, values>= 200are treated as infinity, which causes windows to alwaysOpaqueMoveif eligible. π₯OpaqueResize [{ window-list }]β the opaque version of resize. Extremely resource intensive, but beautiful with a fast server/client/network. SeeOpaqueMove. TheNoOpaqueResizecounterpart is also available. As of4.0.0this is enabled by default. β¨OpaqueResizeThreshold thresholdβ the resize version ofOpaqueMoveThreshold. The default is1000. Since3.8.1, values>= 1000are treated as infinity, causing windows to alwaysOpaqueResizeif eligible. πOpenWindowTimeout secondsβsecondsis an integer representing a number of seconds. When a window tries to open on an unattended display, it will be automatically mapped after this number of seconds. β° (your unattended display is finally getting some main character energy)PackNewWindowsβ use thef.movepackalgorithm instead off.movewhen opening a new window. π
Pixmaps { pixmaps }
okay so this one is a whole vibe-curation station bestie π β it's a list of pixmaps that define how all your various images look. Every entry is a keyword (which pixmap you're setting) followed by a string with the name of the bitmap file. Here's what you can set:
Pixmaps
{
TitleHighlight "gray1"
# TitleHighlight "supman%.xbm"
}
and the default for TitleHighlight? it just uses an even stipple pattern, no biggie β¨
PixmapDirectory path
this tells ctwm where to go looking for bitmap files that aren't X11 ones π§ whenever you wanna use an image file that's not an X11 bitmap, you specify : xpm:filename for xpm files, xwd:filename for xwd files, jpeg:file for jpeg files, or |command for an on-the-fly generated xwd file. use the % character to specify an animation π¬ and path can be a colon-separated list of directories. example:
PixmapDirectory "/usr/lib/X11/twm"
Icons
{
"Axe" "xpm:edit.xpm"
"xterm" "xpm:ball%.xpm"
}
N.B. this is only valid if your version of ctwm was compiled with the right extension (XPM or JPEG). no extension, no sparkle π
PrioritySwitching [Icons] { win-list }
this says the windows in win-list can switch priority β meaning they can be in plane priority or -priority depending on the situation. like, a window whose priority is 2 gets put into plane 2 when raised and plane -2 when lowered, so it'll usually stay on top if you raise another window, but can still be lowered if its priority is temporarily too high for your liking. if Icons is specified, it means the preference applies to icons rather than windows. see also the f.priorityswitching function for dynamically adding/removing windows at runtime π
first appeared in 4.0.0.
PriorityNotSwitching [Icons] { win-list }
same as above except it declares that the default should be for windows to be able to switch priority, except for the windows in win-list, which can't. icon energy, just inverted π¦
first appeared in 4.0.0.
RaiseDelay milliseconds
for windows that get automatically raised when the pointer enters (peep the AutoRaise variable and the f.autoraise function), this sets how long the pointer should rest in the window before it's raised. default is 0 milliseconds. zero patience, zero problems β¨
RaiseOnClick
if this is present, a window gets raised on top of the others when you click on it, and the ButtonPress event gets correctly forwarded to the client that owns the window (if it asked to). see RaiseOnClickButton.
RaiseOnClickButton button_number
where button_number is a valid button number (currently 1 to 11). pick which button does the RaiseOnClick thing π±οΈ
RaiseWhenAutoUnSqueeze
windows are raised when auto-unsqueezed (see AutoSqueeze). it's giving β¨pop back upβ¨
RandomPlacement [ string1 [ string2 ]]
this says that windows with no specified geometry should get placed in a pseudo-random location instead of making the user drag out an outline. no argument given? it's interpreted as RandomPlacement "on" π
string1 can be "on", "off", "all" or "unmapped", and string2 is a displacement for the pseudo-randomly placed window compared to the previous one. "on" and "all" are equivalent and tell ctwm to do this for all such windows; "off" says don't; and "unmapped" means only for unmapped windows, e.g. iconified or not visible in the current workspace. if the second argument isn't given, the displacement +30+30 (30 pixels right and down) is used.
as of 4.0.0, "on" is the default if no RandomPlacement is specified in the config. previously "off" was the default. glow-up fr fr π
ReallyMoveInWorkspaceManager
this keyword tells ctwm to move the actual window when the user is moving the small windows in the WorkSpaceMap window. if it's not present, the WorkSpaceMap can only be used to modify the occupation of a window. pro tip: pressing the shift key while dragging a window in the workspace manager temporarily toggles this option π
ResizeFont</## ResizeFont string
this sets the font used in the dimensions window when you're resizing windows. default is "fixed" π
RestartPreviousState
this indicates that properties on client windows should be used to attempt to regenerate the state the screen was in before the previous window manager was shut down. that includes using the WM_STATE property to tell which windows should be iconified and which should be left visible, and the WM_OCCUPATION property to determine in which workspaces a window should be visible. as of 4.0.0 this is the default π
ReverseCurrentWorkspace
tells ctwm to reverse the background and foreground colors in the small windows in the workspace map for the current workspace. aesthetic inversion, slay πΈ
RplaySoundHost string
the host where sounds should be played. only meaningful when ctwm is built with USE_SOUND; otherwise it'll give a warning β οΈ see the SOUNDS section. added in 4.0.0; prior versions used the SoundHost parameter instead.
RplaySounds { sounds-list }
defines what sounds to play on various events through rplayd. it contains entries of the form
"EventName" "/file/to/play.wav"
only meaningful when ctwm is built with USE_SOUND; it'll give a warning otherwise. see the SOUNDS section. also heads up: if this section is given in the ctwmrc, the ~/.ctwm-sounds file will not be parsed. first appeared in 4.0.0 π΅
SaveColor { colors-list }
this is a list of color assignments to be stored as pixel values in the root window property _MIT_PRIORITY_COLORS. clients may elect to preserve these values when installing their own colormap. ngl, using this mechanism is a way for an application to avoid the "technicolor" problem, where useful screen objects like window borders and titlebars disappear when a program's custom colors are installed by the window manager π example:
SaveColor
{
BorderColor
TitleBackground
TitleForeground
"red"
"green"
"blue"
}
this would place on the root window 3 pixel values for borders and titlebars, plus the three color strings, all taken from the default colormap π
ShrinkIconTitles
a la Motif shrinking of icon titles, and expansion when the mouse is inside the icon. also, the old incorrect spelling SchrinkIconTitles is still accepted β we love a forgiving queen π«Ά
ShortAllWindowsMenus
don't show WorkSpaceManager and IconManagers in the TwmWindows and TwmAllWindows menus. keep it snappy βοΈ
ShowIconManager
this indicates that the icon manager window should be displayed when ctwm is started. it can always be brought up using the f.showiconmgr function.
ShowWorkSpaceManager
this specifies that the WorkSpaceManager should be visible. main character energy, always on display π
SloppyFocus
use sloppy focus. that's it, that's the whole thing π
SaveWorkspaceFocus
when you change to a workspace, this restores the focus to the last window that had focus when you left the workspace, by warping the mouse into it. basically it saves the focus window with the workspace and restores it automatically when you switch. in many cases it avoids having to reach for the mouse after moving to a new workspace. convenience queen π¦
SortIconManager
this says entries in the icon manager should be sorted alphabetically instead of just appending new windows to the end. as of 4.0.0 this is the default β¨
SoundHost</## SoundHost string
alias for RplaySoundHost, used in versions prior to 4.0.0. unless you need backward compatibility with those, use RplaySoundHost instead. this alias will be removed in a future version, so, like, don't get attached π
SqueezeTitle [{ squeeze-list }]
this indicates that ctwm should attempt to use the SHAPE extension to make titlebars occupy only as much screen space as they need, rather than extending all the way across the top of the window. the optional squeeze-list controls the location of the squeezed titlebar along the top of the window. it contains entries of the form:
"name" justification num denom
where name is a window name, justification is either left, center, or right, and num and denom are numbers specifying a ratio giving the relative position about which the titlebar is justified. the ratio is measured from left to right if the numerator is positive, and right to left if negative. a denominator of 0 indicates that the numerator should be interpreted as pixels. for compatibility, the pixel-position 0/0 is the relative middle of the window (1/2) for center and the relative right side of the window (2/2) for right, but this use is not recommended. use "right 2 2" for relative positioning, or "right -1 0" for absolute; this makes a difference when dragging the titlebar (see f.movetitlebar). example:
SqueezeTitle
{
"XTerm" left 0 0
"xterm1" left 1 3
"xterm2" left 2 3
"oclock" center 1 2
"emacs" right 2 2
}
the default positioning is left-justified, absolute at 0 pixels. the DontSqueezeTitle list can be used to turn off squeezing on certain titles π
StartIconified</## StartIconified { win-list }
this indicates that client windows should initially be left as icons until explicitly deiconified by the user. if the optional win-list is given, only those windows get started iconic. this is useful for programs that don't support an -iconic command line option or resource π
StartInButtonState
start the WorkSpaceManage in button form. see also StartInMapState. added in 4.0.0.
StartInMapState
this specifies that the WorkSpaceManager should be started in its map form when created. see also StartInButtonState. as of 4.0.0 this is the default β¨
StartSqueezed</## StartSqueezed { win-list }
these windows will first show up squeezed (see f.squeeze). tiny entrance, big energy π
StayUpMenus
tells ctwm to use stayup menus. these menus stay on the screen when ButtonUp happens, if either the menu hasn't yet been entered by the pointer, or the current item is a f.title. stubborn in the best way π«Ά
StrictWinNameEncodingβ do we wanna be picky about what encodings we accept for window naming properties? This decides that. Added in 4.0.2.
It comes into play when ctwm is translating properties that name windows, like WM_NAME. Like, per the ICCCM, WM_NAME can only be a STRING or COMPOUND_TEXT type. But messy programs (looking at you, Chrome π) will set it to a UTF8_STRING instead. If this var is set, ctwm rejects that, which is exactly how it behaved before 4.0.2. π
SunkFocusWindowTitleβ says the title of the focus window (if there even is one) should be sunken instead of raised. Only valid ifUseThreeDTitlesis set, bestie.ThreeDBorderWidthpixels β the width of the 3D border, in pixels, if there is one. β¨TitleBackgroundstring [{ win-list }] β the background color used in titlebars. Heads up: this can only be specified inside aColororMonochromelist. The optional win-list is a list of window names and colors, so you can do per-window colors if you want. Default is"white". πTitleButtonBorderWidthpixels β the width, in pixels, of the border around titlebuttons. Usually you set this to0so the titlebuttons can take up as much space as possible and have no border at all. Default is1ifUseThreeDTitlesis not set,0if it is set.TitleButtonShadowDepthpixels β how deep the shadow is that ctwm uses for 3D title buttons, whenUseThreeDTitlesis selected.TitleFontstring β the font used to show window names in titlebars. Default is"variable".TitleForegroundstring [{ win-list }] β the foreground color used in titlebars, and again, it may only be specified inside aColororMonochromelist. The optional win-list is a list of window names and colors so you can do per-window colors. Default is"black".TitleJustificationstring β this keyword needs a string value, no cap. The acceptable values are:"left","center"and"right". Window titles get justified according to this in the title window. π¦TitlePaddingpixels β the distance between the various buttons, text, and highlight areas in the titlebar. Default is8pixels ifUseThreeDTitlesis not set,0if it is set.TitleShadowDepthpixels β how deep the shadow is that ctwm uses for 3D titles, whenUseThreeDTitlesis selected.TransientHasOccupationβ says that transient-for and non-group leader windows can have their own occupation, potentially different from their leader window. The default case is that these windows follow their leader β so use this keyword if the default behavior doesn't please you. πTransientOnToppercentage β the parameter (required!) is a percentage, and it tells ctwm to put transient (and non-group leader) windows always on top of their leader if and only if their surface is smaller than this fraction of the surface of their leader. The surface of a window is its width times its weight. Default is30%. Added in 3.0.UnknownIconstring β the filename of a bitmap file to use as the default icon. This bitmap becomes the icon of every client that doesn't provide an icon bitmap and isn't listed in theIconslist.UnmapByMovingFarAway{ win-list } β these windows get moved off the screen instead of being unmapped when they become invisible because of a workspace change. This exists because some ill-behaved clients (Frame5) don't like being unmapped. πUsePPositionstring β should ctwm honor program-requested locations (the ones given by thePPositionflag in theWM_NORMAL_HINTSproperty) when there's no user-specified position? The argument string can be one of three values:"off"(the default) meaning ctwm ignores the program-supplied position,"on"meaning the position should be used, and"non-zero"meaning the position should be used if it's anything other than(0,0). That last one is for working around a bug in older toolkits.UseSunkTitlePixmapβ makes it so the shadows are inverted for title pixmaps when focus is lost. It's similar to havingSunkFocusWindowTitle, but it makes your xbm or 3d XPM (if any) sink instead of just the whole bar.UseThreeDBordersβ tells ctwm to use 3D-looking window borders. The width of the 3D borders isThreeDBorderWidth. The color of the 3D border isBorderTileBackground, and ifNoHighlightisn't selected, the border of the Focus window isBorderColor. Setting this automatically unsetsClientBorderWidth.UseThreeDIconManagersβ tells ctwm to use 3D-looking IconManagers, if any.UseThreeDMenusβ tells ctwm to use 3D-looking menus. β¨UseThreeDTitlesβ tells ctwm to use 3D-looking window titles. When this is on, the default values ofTitleButtonBorderWidth,FramePadding,TitlePaddingandButtonIndentare all set to0. There are plenty of built-in scalable pixmaps for buttons::xpm:menu,:xpm:dot,:xpm:cross,:xpm:bar,:xpm:vbar,:xpm:iconify,:xpm:resize,:xmp:sunkresize, and:xpm:box. There are also several built-in scalable animations for buttons:%xpm:resize,%xpm:menu-up,%xpm:menu-down,%xpm:resize-out-top,%xpm:resize-in-top,%xpm:resize-out-bot,%xpm:resize-in-bot,%xpm:maze-out,%xpm:maze-in,%xpm:zoom-out,%xpm:zoom-in, and%xpm:zoom-inout. Try them and see what they look like, fr fr. πUseThreeDWMapβ tells ctwm to use 3D for the small windows in the workspace map.WarpCursor[{ win-list }] β says the pointer should be warped into windows when they're deiconified. If the optional win-list is given, the pointer only gets warped when those windows are deiconified.WarpOnDeIconify{ win-list } β when ctwm receives a request to map a window, it normally just deiconifies it, but if the window is in win-list, it will additionally bring it into the current workspace, if necessary. For example:
WarpOnDeIconify { "Emacs" }
will make sure emacs windows always pop up in the current workspace when necessary (typically when the minibuffer or the Help frame is in another workspace).
First appeared in 4.0.0.
WarpRingOnScreenβ tells ctwm thatf.warpringwarps the pointer only to windows that are visible in the current workspace.WarpToDefaultMenuEntryβ (useful only withStayUpMenus) when usingStayUpMenusand a menu stays up, the pointer gets warped to the default entry of the menu.WarpUnmappedβ says that thef.warptofunction should deiconify any iconified windows it encounters. Typically used to make a key binding that pops a particular window (likexmh), no matter where it is. The default is forf.warptoto ignore iconified windows.WindowGeometries{ win-list } β used to give a default geometry to some clients. When XrandR is compiled, the geometry can be relative to a monitor by prefixing its name (visible with thexrandr(1)command line) followed by:. That name is ignored when XrandR isn't available:
WindowGeometries {
"Mozilla*" "1000x800+10+10"
"jpilot*" "HDMI1:800x600-0-0"
}
WindowRegiongeomstring vgrav hgrav { win-list } β similar toIconRegion, but for windows. Note that the win-list is not optional here.WindowRing[{ win-list }] β a list of windows that thef.warpringfunction cycles along. If no argument is given, all the windows are in the ring.WindowRingExclude[{ win-list }] β all the listed windows get excluded from the WarpRing.WMgrButtonShadowDepthdepth β controls the depth of the shadow of the workspace manager buttons.WMgrButtonStylestring β sets the style of the workspace manager buttons (when in button rather than map state), plus the buttons in the Occupy window. Available options arenormal(the default 3d look),style1,style2, andstyle3(which are slightly different 2d looks).WMgrHorizButtonIndentnb_pixels β the horizontal space, in pixels, between the buttons of the workspace manager (in button mode).WMgrVertButtonIndentnb_pixels β the vertical space, in pixels, between the buttons of the workspace manager (in button mode).WorkSpaceFontstring β lets you specify the font to use for the small windows in the workspace manager map. (Try-adobe-times-*-r-*--10-*-*-*-*-*-*-*.)WorkSpaceManagerGeometrystring [ columns ] β the geometry of the workspace manager window. The string argument is a standard geometry specification that indicates the initial full size of the workspace manager. When XrandR is compiled, the geometry can be relative to a monitor by prefixing its name (visible with thexrandr(1)command line) followed by:. That name is ignored when XrandR isn't available. The columns argument indicates the number of columns to use for the workspace manager window.
WorkSpaceManagerGeometry "360x60+60-0" 8
WorkSpaceManagerGeometry "HDMI1:600x30+1235+0" 12
WorkSpaces{ workspace-list } β a list of workspaces that get created at startup, where workspace-list is:
name [{bg-button [fg-button] [bg-root] [fg-root] [pixmap-root]}]
With:
bg-buttonβ background color of the corresponding button in the workspace manager.fg-buttonβ foreground color of the corresponding button in the workspace manager.bg-rootβ background color of the corresponding root screen.fg-rootβ foreground color of the corresponding root screen.pixmap-rootβ pixmap to display on the corresponding root screen, either the name of a bitmap,xpm:xpmfile,xwd:xwdfile,jpeg:jpgfile, or|command_that generates_xwd.
Example:
WorkSpaces
{
"One" {"#686B9F" "white" "DeepSkyBlue3" "white" "jpeg:shark.jpg"}
"Two" {"#619AAE" "white" "firebrick"}
"Three" {"#727786" "white" "MidnightBlue" "white" "xpm:ball%.xpm"}
"Four" {"#727786" "white" "white" "white"
"|(giftoppm | pnmtoxwd) < 2010.gif"}
"Five" {"#727786" "white" "DeepSkyBlue3" "white" "plaid"}
"Six" {"#619AAE" "white" "DeepSkyBlue3" "white" "xpm:background1"}
"Seven" {"#8C5b7A" "white" "chartreuse4"}
"Eight" {"#686B9F" "white" "MidnightBlue"}
}
okay bestie, look at that masterpiece of a config π so pretty. now the tea β β your WorkSpaces declaration has to come before the Occupy or OccupyAll declarations, no exceptions. and the maximum number of workspaces is 32 β that's the ceiling, periodt. π
every workspace also has a label, which shows up in the WorkSpaceManager window when it's in button state. and the way you edit it is literally so cute: move your mouse cursor over a button and just start typing letters and/or backspace β¨. the label updates. the name is unaffected though, okay? and heads up β functions that look up workspaces by name also look at the label. iykyk. π«Ά
XMoveGridnumber β this one sets the value used to constrain window movement π¦. when you're moving windows around, the x coordinate will always be a multiple of this variable. default is1. oh and βf.forcemoveignores this variable entirely, so don't come crying to me π.XorValuenumber β this sets the value used when drawing window outlines for moving and resizing β¨. the whole point is you wanna pick a value that gives you a variety of distinguishable colors when exclusive-or'ed with the contents of the user's typical screen π. setting this variable to1often gives nice results if adjacent colors in the default colormap are distinct. and by default? ctwm will attempt to cause temporary lines to appear at the opposite end of the colormap from the graphics. cute, right? πYMoveGridnumber β same energy asXMoveGridbut for the y axis πΈ. when moving windows around, the y coordinate will always be a multiple of this variable. default is1. and yep βf.forcemoveignores this variable too. πZoom[ count ] β this makes outlines show up suggesting movement of a window to and from its iconified state, whenever a window gets iconified or deiconified π. the optional count argument says how many outlines to draw. default count is8. eight little ghost trails of your window, iconic. π
β οΈ important order alert: the following variables must be set after the fonts have been assigned, so it's usually best to put them at the end of the variables or beginning of the bindings sections. don't fight me on this, just do it. π
ChangeWorkspaceFunctionfunction β sets the function to execute when the user changes the current workspace (zap) β‘.DefaultFunctionfunction β sets the function to execute when a key or button event comes in that has no binding provided π. typically bound tof.nop,f.beep, or a menu containing window operations.DeIconifyFunctionfunction β sets the function to execute when a window is deiconified π¦.IconifyFunctionfunction β sets the function to execute when a window is iconified π.WindowFunctionfunction β sets the function to execute when a window is selected from theTwmWindowsmenu. if this variable is not set, the window will be deiconified and raised. that's the fallback, bestie. π
β¨ BINDINGS β¨
okay so once you've set all your variables, now we attach functions to titlebuttons and key and pointer buttons π«Ά. titlebuttons can be added from the left or right side and they appear in the titlebar from left-to-right according to the order in which they are specified. key and pointer button bindings? any order you want, bestie, we don't gatekeep. π
π Title buttons π
Titlebutton specifications must include the name of the pixmap to use in the button box and the function to invoke when a pointer button is pressed within them:
LeftTitleButton "bitmapname" = function
or
LeftTitleButton "bitmapname" {
Buttoni = modlist : function
...
Buttonj = function
}
or
RightTitleButton "bitmapname" = function
or
RightTitleButton "bitmapname" {
Buttoni = modlist : function
...
Buttonj = function
}
the bitmapname may refer to one of the built-in bitmaps (which are scaled to match TitleFont) by using the appropriate colon-prefixed name described above β¨.
the pointer button specifications come in two forms: with a modifier list, or without πΈ. when the specification comes without a modifier list, it's used for the case when no modifiers are used. in other words, these two lines are equivalent:
Buttoni = function
Buttoni = : function
π¦ Key and pointer buttons π¦
Key and pointer button specifications must give the modifiers that must be pressed, over which parts of the screen the pointer must be, and what function is to be invoked π. Keys are given as strings containing the appropriate keysym name; buttons are given as the keywords Button1-Button11:
"FP1" = modlist : context : function
Button1 = modlist : context : function
a user who wanted to be able to manipulate windows from the keyboard could use the following bindings π
"F1" = : all : f.iconify
"F2" = : all : f.raiselower
"F3" = : all : f.warpring "next"
"F4" = : all : f.warpto "xmh"
"F5" = : all : f.warpto "emacs"
"F6" = : all : f.colormap "next"
"F7" = : all : f.colormap "default"
"F20" = : all : f.warptoscreen "next"
"Left" = m : all : f.backiconmgr
"Right" = m | s : all : f.forwiconmgr
"Up" = m : all : f.upiconmgr
"Down" = m | s : all : f.downiconmgr
ctwm provides many more window manipulation primitives than can be conveniently stored in a titlebar, menu, or set of key bindings π. although a small set of defaults are supplied (unless the NoDefaults is specified), most users will want to have their most common operations bound to key and button strokes π
. to do this, ctwm associates names with each of the primitives and provides user-defined functions for building higher level primitives and menus for interactively selecting among groups of functions β¨.
π Modifiers and Contexts π
the modlist lets you specify different bindings for a button or key when modifiers are applied π. the list of recognized modifier names (abbreviated) are shift (s), control (c), lock (l), alter1 (a1), alter2 (a2), alter3 (a3), alter4 (a4), alter5 (a5), meta (m), mod1 (m1), mod2 (m2), mod3 (m3), mod4 (m4), and mod5 (m5) π¦. multiple modifiers may be applied to a single line by combining them with a vertical bar (|) π
. for example:
# Open the "top" menu with a Button1 (usually left mouse button) click in
# the root window
Button1 = : root : f.menu "top"
# Open the "top2" menu with shift-click
Button1 = s : root : f.menu "top2"
# And "top3" when control-shift-click
Button1 = c | s : root : f.menu "top3"
the lock modifier refers to CapsLock. meta is generally your Alt key. mod1 is the same as meta. mod2..5 can have various special meanings; try running xmodmap -pm to see how your X server is mapping things (the xkeycaps program may also be useful) π. the alter1..5 modifiers refer to ctwm alternate keymaps; see the description of f.altkeymap below for details π.
β οΈ note: if you're using the m4 preprocessor, most implementations define ashiftmacro internally, so using that as a modifier will silently fail to work right π. to get around it, you'll need to quote it so that m4 passes it through as a literal string:shift. no cap, this one gets everybody. π
the context lets you specify which mappings apply based on where the pointer currently is on the screen πΈ. the available options are window (w), title (t), icon (i), root (r), frame (f), workspace (no abbreviation), iconmgr (m), and alter (a) β¨. like the modifiers above, they may be combined with a vertical bar, which allows you to bind an action in multiple contexts at once π«Ά. alternately, all can be given for the context to specify that the binding should happen everywhere π. it's equivalent to combining all the choices (except alter, which is special) π.
the alter context allows binding the function when in the alternate context; see the f.altcontext function below for details π
.
there is an additional possible magical value for context β¨ β if you provide a quoted string (e.g., "MyXterm") for the context of a key (but not button) binding, then that binding will trigger the given function in window context to all windows matching that name π¦. e.g.,
# Pressing "F1" anywhere on the screen will cause all windows with name
# "xterm" to raise themselves.
"F1" = : "xterm" : f.raise
β οΈ beware that this can have odd side effects if multiple windows are matched, especially if the function can conflict one with the other π (e.g., in the example above, if two "xterm" windows overlap each other).
π Functions π
the function in a binding is any of the f. keywords described below π
. for example, the default startup file contains the following bindings:
Button1 = : root : f.menu "TwmWindows"
Button1 = m : window | icon : f.function "move-or-lower"
Button2 = m : window | icon : f.iconify
Button3 = m : window | icon : f.function "move-or-raise"
Button1 = : title : f.function "move-or-raise"
Button2 = : title : f.raiselower
Button1 = : icon : f.function "move-or-iconify"
Button2 = : icon : f.iconify
Button1 = : iconmgr : f.iconify
Button2 = : iconmgr : f.iconify
user-defined functions contain the name by which they are referenced in calls to f.function and a list of other functions to execute π. for example:
Function "move-or-lower" { f.move f.deltastop f.lower }
Function "move-or-raise" { f.move f.deltastop f.raise }
Function "move-or-iconify" { f.move f.deltastop f.iconify }
Function "restore-colormap" { f.colormap "default" f.lower }
the function name must be used in f.function exactly as it appears in the function specification. no typos bestie, it will not forgive you π.
in the descriptions below, if the function is said to operate on the selected window, but is invoked from a root menu, the cursor will be changed to the Select cursor and the next window to receive a button press will be chosen π:
! stringβ this is an abbreviation forf.exec string. short and sweet, iconic. β¨f.addtoworkspace stringβ this function adds the selected window to the workspace whose name is string π«Ά.
f.altcontext π
Okay so bestie, this one sets the alternate context. The next key or button event ctwm receives? It gets interpreted using the alternate context. To define bindings in the alternate context, use the keyword alter in the context field of the binding command. For example:
"Return" = m : all : f.altcontext
"n" = : alter : f.nextworkspace
"p" = : alter : f.prevworkspace
f.altkeymap number β¨
Set the alternate keymap number, where number is an integer between 1 and 5 inclusive. The next key or button event ctwm receives will be interpreted using this alternate keymap. To define bindings in an alternate keymap, use the keyword a followed by number in the modifier field of the binding command. For example:
"Return" = c : all : f.altkeymap "1"
"i" = a1 : window|icon|iconmgr : f.iconify
"z" = a1 : window : f.zoom
"d" = a1 : window|icon : f.delete
"o" = a1 : window|icon : f.occupy
"r" = a1 : window|icon : f.refresh
When using an alternate keymaps, only the root, window, icon and iconmgr contexts are allowed.
f.autolower π«Ά
This function toggles whether or not the selected window is lowered whenever the pointer leaves it. See the description of the variable AutoLower.
f.autoraise πΈ
This function toggles whether or not the selected window is raised whenever entered by the pointer. See the description of the variable AutoRaise.
f.backiconmgr π
This function warps the pointer to the previous column in the current icon manager, wrapping back to the previous row if necessary.
f.backmapiconmgr π¦
This function warps the pointer in the same manner as f.backiconmgr but only stops at windows that are mapped.
f.beep π
This function sounds the keyboard bell.
f.bottomzoom β¬οΈ
This function stretches the bottom side of the window out to the bottom edge of the current monitor, or restores the original size if the window was already bottomzoomβd.
f.changepriority rel-value π
Change the priority of a window by rel-value (enclosed within double quotes). For instance, to bury a window one level down, you would use f.changepriority "-1". See OnTopPriority variable.
First appeared in 4.0.0.
f.changesize string π
This function allows you to change the size of the focused window. The format of the string must be either "<border> <+|-><sizechange>" (where <border> must be one of top, bottom, left or right) or "<x size>x<y size>" (where the size is the requested new window size). The height of the window can never be set/changed to less than the title height + 1 (or 1 if the window has no title) and the width can never be set/changed to less than 1.
"Right" = c|s : all : f.changesize "right +10"
"Left" = c|s : all : f.changesize "right -10"
"Down" = c|s : all : f.changesize "bottom +10"
"Up" = c|s : all : f.changesize "bottom -10"
"F1" = c|s : all : f.changesize "640x480"
"F2" = c|s : all : f.changesize "800x600"
"F3" = c|s : all : f.changesize "1024x768"
f.circledown π
This function lowers the top-most window that occludes another window.
f.circleup π
This function raises the bottom-most window that is occluded by another window.
f.colormap string π
This function rotates the colormaps (obtained from the WM_COLORMAP_WINDOWS property on the window) that ctwm will display when the pointer is in this window. The argument string may have one of the following values: "next", "prev", and "default". It should be noted here that in general, the installed colormap is determined by keyboard focus. A pointer driven keyboard focus will install a private colormap upon entry of the window owning the colormap. Using the click to type model, private colormaps will not be installed until the user presses a mouse button on the target window.
f.deiconify πͺ
This function deiconifies the selected window. If the window is not an icon, this function does nothing.
f.delete ποΈ
This function sends the WM_DELETE_WINDOW message to the selected window if the client application has requested it through the WM_PROTOCOLS window property. The application is supposed to respond to the message by removing the indicated window. If the window has not requested WM_DELETE_WINDOW messages, the keyboard bell will be rung indicating that the user should choose an alternative method. Note this is very different from f.destroy. The intent here is to delete a single window, not necessarily the entire application.
f.deleteordestroy π₯
First tries to delete the window (send it WM_DELETE_WINDOW message), or kills it, if the client doesnβt accept such message.
f.deltastop π
This function allows a user-defined function to be aborted if the pointer has been moved more than MoveDelta pixels. See the example definition given for Function "move-or-raise" at the beginning of the section.
f.destroy β οΈ
This function instructs the X server to close the display connection of the client that created the selected window. This should only be used as a last resort for shutting down runaway clients. See also f.delete.
f.downiconmgr β¬οΈ
This function warps the pointer to the next row in the current icon manager, wrapping to the beginning of the next column if necessary.
f.downworkspace π
Goto the workspace immediately underneath the current workspace in the workspace manager. If the current workspace is the bottom one, goto the top one in the same column. The result depends on the layout of the workspace manager.
f.exec string π
This function passes the argument string to /bin/sh for execution. In multiscreen mode, if string starts a new X client without giving a display argument, the client will appear on the screen from which this function was invoked. If the string "$currentworkspace" is present inside the string argument, it will be substituted with the current workspace name.
f.fill string π§©
Where string is either: "right", "left", "top", "bottom" or "vertical". The current window is resized in the specified direction until it reaches an obstacle (either another window, or the screen border). f.fill "vertical" sets the window status to "zoomed" and toggles, ie calling it again will reset the previous window size.
f.focus π―
This function toggles the keyboard focus of the server to the selected window, changing the focus rule from pointer-driven if necessary. If the selected window already was focused, this function executes an f.unfocus.
f.forcemove πββοΈ
This function is like f.move except that it ignores the DontMoveOff variable.
f.forwiconmgr β‘οΈ
This function warps the pointer to the next column in the current icon manager, wrapping to the beginning of the next row if necessary.
f.forwmapiconmgr πΊοΈ
This function warps the pointer in the same manner as f.forwiconmgr but only stops at windows that are mapped.
f.fullscreenzoom π₯οΈ
This function is similar to the f.fullzoom function, except that it makes the client window (the part inside the frame) the size of the current monitor, so the window decorations are off-screen. This gives the same visual effect as the window covering the whole screen with no decorations. If the window is already fullscreenzoomβd, it restores the original size.
f.fullzoom π
This function resizes the selected window to the full size of the current monitor, or restores the original size if the window was already fullzoomβd.
f.function string π§
This function executes the user-defined function whose name is specified by the argument string.
f.gotoworkspace workspace_name π§
This function warps you to the workspace whose name is workspace_name.
f.hbzoom β¬οΈ
This function is a synonym for f.bottomzoom.
f.hideiconmgr π
This function unmaps the current icon manager.
f.hideworkspacemgr π«₯
Unmap the WorkSpace manager.
f.horizoom βοΈ
This function stretches the window so that it covers the whole width of the current monitor, or restores the original size if the window was already horizoomβd.
f.htzoom β¬οΈ
This function is a synonym for f.topzoom.
f.hzoom βοΈ
This function is a synonym for f.horizoom.
f.iconify ποΈ
This function iconifies or deiconifies the selected window or icon, respectively.
f.identify πͺͺ
This function displays a summary of the name and geometry of the selected window. Clicking the pointer or pressing a key in the window will dismiss it.
f.initsize π
This function resets a window to its initial size given by the WM_NORMAL_HINTS hints.
f.jumpdown step β¬οΈ
This function is designed to be bound to a key, it moves the current window (step * {X,Y}MoveGrid) pixels downward. stopping if the window encounters another window or the screen border (ala f.pack).
f.jumpleft step β¬
οΈ
Leftward equivalent of f.jumpdown.
f.jumpright step β‘οΈ
Rightward equivalent of f.jumpdown.
f.jumpup step β¬οΈ
Upward equivalent of f.jumpdown.
f.lefticonmgr β¬
οΈ
This function similar to f.backiconmgr except that wrapping does not change rows.
f.leftworkspace β¬
οΈ
Goto the workspace immediately on the left of the current workspace in the workspace manager. If the current workspace is the leftest one, goto the rightest one in the same row. The result depends on the layout of the workspace manager.
f.leftzoom β¬
οΈ
This function stretches the left side of the window out to the left edge of the current monitor, or restores the original size if the window was already leftzoomβd.
f.lower β¬οΈ
This function lowers the selected window.
f.menustring β this one invokes the menu that the string argument names, bestie. And the cute part? You can build cascaded menus by nesting calls tof.menuinside each other. When a menu pops up, you can absolutely use the arrow keys to move the cursor around it:- βDownβ or space goes down
- βUpβ goes up
- βLeftβ pops down the menu
- βRightβ activates the current entry
Also, the first letter of an entry name activates that entry (the first one, if several entries match). And the secret-sauce keyboard modifiers: if the first letter is ~ then Meta-the-second-letter activates it, if the first letter is ^ then Control-the-second-letter activates it, and if the first letter is a space, then the second letter activates it. iykyk π
f.moveβ this drags an outline of the selected window (or the window itself if theOpaqueMovevariable is set) until the invoking pointer button is released. Double clicking within the number of milliseconds given byConstrainedMoveTimewarps the pointer to the center of the window and constrains the move to be either horizontal or vertical, depending on which grid line is crossed. Wanna abort a move? Press another button before releasing the first button. π«Άf.movepackβ likef.move, except it tries to avoid overlapping of windows. When the moving window begins to overlap with another window, the move is stopped. But if you go too far over the other window (more thanMovePackResistancepixels), the move is resumed and the moving window can overlap with the other window. Super useful to pack windows closely. β¨f.movepushβ also likef.move, except it tries to avoid overlapping of windows. When the moving window begins to overlap with another window, the other window is pushed. If you go too far over the other window (more thanMovePackResistancepixels), there is no push and the moving window can overlap with the other window. Only available ifOpaqueMoveis active. πf.moveresizegeometry β takes one string argument which is a geometry with the standard X geometry syntax (e.g.200x300+150-0). Sets the current window to the specified geometry. Heads up: the width and height are to be given in pixel, no base size or resize increment are used. When XrandR is compiled, the geometry can be relative to a monitor, by prefixing its name (visible with thexrandr(1)command line) followed by:(e.g.HDMI1:200x300+150-0). That name is ignored when XrandR is not available.f.movetitlebarβ if applied to a squeezed titlebar (seeSqueezeTitle) you can drag it along the top of the window (a feature which was first found in BeOS, iconic honestly). The existing justification type is preserved, as is the positioning (relative or absolute). This means that a relatively positioned titlebar will move when the width of a window changes, whereas an absolutely positioned title will not. The default positioning is left-justified, absolute at 0 pixels.
Button1 = m1 : title : f.movetitlebar
Fr fr though β f.movetitlebar does nothing if the window has no title, the window is squeezed (see f.squeeze), or the title is not squeezed (see SqueezeTitle). π
f.movetonextworkspace,f.movetonextworkspaceandfollowβ move the window to the next workspace, and optionally switch view over to that workspace. πf.movetoprevworkspace,f.movetoprevworkspaceandfollowβ move the window to the previous workspace, and optionally switch view over to that workspace. π¦f.nexticonmgrβ warps the pointer to the next icon manager containing any windows on the current or any succeeding screen.f.nextworkspaceβ goto the next workspace in the list, using the order given in the.ctwmrcfile.f.nopβ this function does nothing and is typically used with theDefaultFunctionorWindowFunctionvariables, or to introduce blank lines in menus. The loml of doing nothing πf.occupyβ pops up a window for the user to choose which workspaces a window belongs to.f.occupyallβ makes the specified window occupy all the workspaces. main character energy, honestly.f.packstring β where string is eitherright,left,toporbottom. The current window is moved in the specified direction until it reaches an obstacle (either another window, or the screen border). The pointer follows the window. πf.pinβ valid only in a root menu. Make a menu permanent on the screen. This is a toggle function: if you select it while the menu is already permanent, it becomes non-permanent. β¨f.previconmgrβ warps the pointer to the previous icon manager containing any windows on the current or preceding screens.f.prevworkspaceβ goto the previous workspace in the list, using the order given in the.ctwmrcfile.f.priorityswitchingβ toggle the windowβs switching ability. X-refPrioritySwitchingandOnTopPriorityvariables.
First appeared in 4.0.0.
f.quitβ this function causesctwmto restore the windowβs borders and exit. And lowkey: ifctwmis the first client invoked fromxdm, this will result in a server reset. πf.raiseβ raises the selected window. periodt.f.raiseiconsβ raises all the icons in the current workspace. πf.raiselowerβ this function raises the selected window to the top of the stacking order if it is occluded by any windows, otherwise the window will be lowered. Chaos but make it useful.f.raiseorsqueezeβ raise the window or squeeze it if itβs a double click. The time that defines a double click is given by theConstrainedMoveTimevariable.
First appeared in 4.0.0.
f.refreshβ causes all windows to be refreshed. β¨f.removefromworkspacestring β removes the selected window from the workspace whose name is string.f.rereadsoundsβ causes the.ctwm-soundsfile to be re-read. Note that this will not re-read sounds set inRplaySoundsin the config file. As a result, this function will probably go away in the future when.ctwm-soundssupport is removed. See the SOUNDS section. πf.rescuewindowsβ if you somehow managed to move a window out of sight (we've all been there bestie), calling this function will check all windows and icons on currently visible virtual screens, and those that are (nearly) out of the bounds of their virtual screen will be brought completely inside (if that fits). π«Ά
First appeared in 4.0.0.
f.resizeβ displays an outline of the selected window. Crossing a border (or settingAutoRelativeResize) will cause the outline to begin to rubber band until the invoking button is released. To abort a resize, press another button before releasing the first button.f.restartβ kills and restartsctwm. Slay, rebirth, etc. π₯f.restoregeometryβ restore the current window geometry to what was saved in the last call tof.savegeometry.f.righticonmgrβ similar tof.nexticonmgr, except that wrapping does not change rows.f.rightworkspaceβ goto the workspace immediately on the right of the current workspace in the workspace manager. If the current workspace is the rightest one, goto the leftest one in the same row. The result depends on the layout of the workspace manager.f.rightzoomβ stretches the right side of the window out to the right edge of the current monitor, or restores the original size if the window was alreadyrightzoomβd. πΈf.ringβ selects a window and adds it to theWarpRing, or removes it if it was already in the ring. This command makesf.warpringmuch more useful, by making its configuration dynamic. Obsessed with the flexibility tbh.f.savegeometryβ the geometry of the current window is saved. The next call tof.restoregeometrywill restore this window to this geometry.f.saveyourselfβ this function sends aWM_SAVEYOURSELFmessage to the selected window if it has requested the message in itsWM_PROTOCOLSwindow property. Clients that accept this message are supposed to checkpoint all state associated with the window and update theWM_COMMANDproperty as specified in the ICCCM. If the selected window has not selected for this message, the keyboard bell will be rung. πf.separatorβ valid only in menus. The effect is to add a line separator between the previous and the following entry. The name selector part in the menu is not used (but must be present). Don't ask, just vibe. πf.setbuttonsstateβ set theWorkSpacemanager in button state.f.setmapstateβ set theWorkSpacemanager in map state.f.setpriority"value" β set the windowβs priority to value (enclosed between double quotes). If value is directly followed by<orb, the window is placed below other windows of the given priority. Otherwise it is placed above. See theOnTopPriorityvariable for details.
First appeared in 4.0.0.
f.showbackgroundβ this function unmaps all windows in the current workspace. This is a toggle function: if all windows are unmapped, they are all remapped. Better bind this function in the root context. π¦f.showiconmgrβ maps the current icon manager.f.showworkspacemgrβ map theWorkSpacemanager.f.slowdownanimationβ decreaseAnimationSpeedby 1. πf.sorticonmgrβ sorts the entries in the current icon manager alphabetically. See the variableSortIconManager.f.speedupanimationβ increaseAnimationSpeedby 1. β‘f.squeezeβf.squeezesqueezes a window to a null vertical size. Works only for windows with either a title, or a 3D border (in order to have something left on the screen). If the window is already squeezed, it is unsqueezed. πf.startanimationβ restart freezed animations (if any).f.stopanimationβ freeze animations (if any). π§f.switchpriorityβ switch the windowβs priority, independently of its ability to switch automatically. X-refOnTopPriorityandPrioritySwitchingvariables.
First appeared in 4.0.0.
f.tinylower,f.tinyraiseβ these two functions allow you to raise/lower a window "one step" at a time. For instance,f.tinyraisewill bring the current window just above the lowest one thatβs hiding it. These two functions are not subject to priority-switching. π
First appeared in 4.0.0.
f.titleβ this function provides a centered, unselectable item in a menu definition. It should not be used in any other context. Menu decoration only, bestie. β¨f.toggleoccupationstring β bestie, this one takes the selected window and plops it into the workspace named string if it's not already living there, and if it IS already there, it yeets it out of that workspace. Toggle city. πf.togglesoundβ toggles sound on and off. Go check the SOUNDS section, iykyk. πf.togglestateβ flips the state of the WorkSpace manager back and forth.f.toggleworkspacemgrβ shows/hides the WorkSpaceManager. If it's mapped, it gets unmapped, and vice versa. It's giving light switch energy. π‘f.topzoomβ stretches the top side of the window all the way out to the top edge of the current monitor. And if the window was already topzoom'd? It restores the original size, periodt.f.tracestring β this is the debug-output dumping handler, fr fr. If you hand it a filename in string, it starts writing output to that file; if string is"stderr", it writes to stderr instead. And if the debug file is already open, callingf.traceagain closes it. π
Honestly? This is probably only useful if you're doing development on ctwm. Devs only, no cap.
f.twmrcβ literally just an alias forf.restart. Same thing, different name. πf.unfocusβ resets the focus back to pointer-driven mode. Use this when a focused window is no longer the moment. πf.unsqueezeβ is tof.squeezewhatf.deiconifyis tof.iconify. The un-squeeze. The reverse card. π
First appeared in 4.0.0. β
f.upiconmgrβ warps the pointer up to the previous row in the current icon manager. If you're already at the top, it wraps around to the last row in the same column. Wrapping, but make it fashion. πf.upworkspaceβ goes to the workspace immediately above the current one in the workspace manager. If you're already at the very top, it jumps down to the bottom one in the same column instead. Fair warning: the result depends on the layout of your workspace manager, so it's a vibe check every time. β¨f.vanishβ the specified window vanishes from the current workspace if it occupies at least one other WorkSpace. In all the other cases? Do nothing. Poof, but conditionally. πf.versionβ makes the ctwm version window pop up. It stays on screen until you press a pointer button or move the pointer from one window to another. Blink and it's gone, bestie. π¦f.vlzoomβ a synonym forf.leftzoom. That's it, that's the whole function.f.vrzoomβ a synonym forf.rightzoom. Twin behavior. π«Άf.warpherewin_name β adds the window whose name or class matches string to the current workspace, then warps the pointer over to it. If that window is iconified, it gets deiconified if the variableWarpUnmappedis set β otherwise it's just ignored. πf.warpringstring β warps the pointer to the next or previous window, whichever the argument string says. string can be"next"or"prev", and the windows it cycles through are the ones you listed in theWindowRingvariable. πf.warptostring β warps the pointer to the window whose name or class matches string. If that window is iconified, it will be deiconified if the variableWarpUnmappedis set, or else ignored. Same deal asf.warpherebut with a target. π―f.warptoiconmgrstring β warps the pointer to the icon manager entry that's associated with the window containing the pointer, inside the icon manager named by the argument string. If string is empty (like""), it just uses the current icon manager. Easy. πf.warptoscreenstring β warps the pointer to the screen that string says. And string can be so many things:- a number, like
"0"or"1"π’ - the word
"next"β meaning current screen plus 1, skipping over any unmanaged screens - the word
"back"β meaning current screen minus 1, also skipping unmanaged screens - the word
"prev"β meaning the last screen you visited (nostalgia core π)
- a number, like
f.winrefreshβ just like thef.refreshfunction, except it only refreshes the selected window. Single-target refresh, main character energy. β¨f.xbottomzoomβ likef.bottomzoom, but it will cross monitors. πf.xfullscreenzoomβ likef.fullscreenzoom, but it will cross monitors.f.xfullzoomβ likef.fullzoom, but it will cross monitors.f.xhorizoomβ likef.horizoom, but it will cross monitors.f.xleftzoomβ likef.leftzoom, but it will cross monitors.f.xrightzoomβ likef.rightzoom, but it will cross monitors.f.xtopzoomβ likef.topzoom, but it will cross monitors.f.xzoomβ likef.zoom, but it will cross monitors.f.zoomβ stretches the window so it covers the whole height of the current monitor, or restores the original size if the window was already zoom'd. It's the vertical counterpart tof.horizoom; maybef.vertzoomwould've been a better name... but here we are. π
β¨ MENUS β¨
Okay so functions can be grouped together and picked interactively using pop-up menus (when you bind them to a pointer button) or pull-down menus (when you associate them with a titlebutton). Each menu specification has: the name of the menu as f.menu will refer to it, optional default foreground and background colors, the list of item names plus the functions they invoke, and optional foreground and background colors for individual items. π
Menu "menuname" [ ("deffg":"defbg") ]
{
string1 [ ("fg1":"bg1") ] function1
string2 [ ("fg2":"bg2") ] function2
.
.
.
stringN [ ("fgN":"bgN") ] functionN
}
The menuname is case-sensitive, so don't get cute with the capitalization. The optional deffg and defbg arguments set the foreground and background colors used on a color display to highlight menu entries. The string part of each menu entry is the text that'll actually show up in the menu. The optional fgN and bgN arguments set the foreground and background colors of that menu entry when the pointer isn't in it. Heads up: these colors only get used on a color display. The default is to use the colors from the MenuForeground and MenuBackground variables. And the function part of the menu entry is one of the functions β including any user-defined functions, or even additional menus. π
Fun detail: if an entry name starts with a * (star), that star won't be displayed, and that entry becomes the default entry for this menu. When a menu has a default entry and it's used as a submenu of another menu, that default entry's action gets executed automatically when the submenu is selected, without the submenu even being displayed. It's hard to explain, but easy to understand. Trust. π§
π Special Menus π
There are several special menus, and they're iconic:
TwmWindowsβ contains the names of all the client and ctwm-supplied windows in the current workspace. Selecting an entry runs theWindowFunctionon that window. And ifWindowFunctionhasn't been set? The window gets deiconified and raised. Slay. πTwmVisibleβ lists the windows that are currently deiconified (first appeared in 3.7).TwmIconslists only the ones that are currently iconified. πTwmAllWindowsandTwmAllIconsβ act just like the non-Allvariants above, except they show windows in all workspaces, not just the current one. β¨TwmWorkspacesβ contains the names of your workspaces, and selecting an entry goes to that workspace. Bonus: these entries have submenus containing the names of all windows occupying that workspace, and selecting one of those executesf.warptoon that window. Nested menu realness. πͺTwmKeysβ lists all the keybindings in the root context that invokef.exec. First appeared in 3.7. π
πΈ ICONS πΈ
ctwm supports several different ways of manipulating iconified windows, bestie. The common pixmap-and-text style can be laid out by hand, or automatically arranged as described by the IconRegion variable. And on top of that, a terse grid of icon names β called an icon manager β gives you a way more efficient use of screen space, plus the ability to navigate among windows from the keyboard. π
An icon manager is a window containing the names of selected or all windows currently on the display. Besides the window name, a small button using the default iconify symbol shows up to the left of the name when the window is iconified. By default, clicking an entry in the icon manager performs f.iconify. Wanna change what happens in the icon manager? Use the iconmgr context when you're specifying button and keyboard bindings. π
Moving the pointer into the icon manager also directs keyboard focus to the indicated window (either setting the focus explicitly, or else sending synthetic events if NoTitleFocus is set β note the original text's grammar there, we keep it real). And using the f.upiconmgr, f.downiconmgr, f.lefticonmgr, and f.righticonmgr functions, the input focus can be changed between windows directly from the keyboard. Keyboard navigation, no mouse required, periodt. β¨οΈβ¨
πͺ X WINDOW PROPERTIES
Okay so as a window manager, ctwm is constantly reading and setting a whole bunch of properties on the windows it manages and the windows it creates. Most of that is so far beyond user docs it's not even funny, but a few lil points are genuinely worth mentioning, so here we are bestie π
π·οΈ Window Naming
Windows get their names via X properties, and there are two types of names, okay:
- the window name β this is what shows up in the titlebar, the
f.identifywindow, etc. - the icon name β this is what shows up on the icon and on the icon manager.
Before 4.0.2, ctwm only supported the standard ICCCM properties for setting the window and icon names. Those are WM_NAME for the window name, and WM_ICON_NAME for the icon name. But as of 4.0.2, ctwm also supports the EWMH versions of these, which are _NET_WM_NAME and _NET_WM_ICON_NAME. And if the EWMH variants exist, they get used in preference to the older ICCCM style. periodt β¨
As of 4.0.2, ctwm also supports an additional pair of properties: CTWM_WM_NAME and CTWM_WM_ICON_NAME, which override all the others. These are specifically intended for you, the user, to manually set β not for programs to set themselves. This is the whole point: it lets you override programs that name themselves unhelpfully, or just otherwise label things to your liking. main character energy honestly π
You can set these via any method you'd use to set window properties. From the command line, the xprop(1) tool is widely available, if a little clunky. So, for instance, to set the icon name of a window (changing how it looks in the icon manager), but leave the window name alone as the program itself normally sets it (leaving the titlebar normal), you could run a command like:
xprop -f CTWM_WM_ICON_NAME 8u -set CTWM_WM_ICON_NAME "I hate this window"
and then click the window you want to set it on. π
Unfortunately, xprop(1) does require you to specify the property name when defining the format, as well as when setting it, so it's a little ugly. The 8u means you're giving a UTF-8 string. Other possible formats are 8s for a plain 7-bit STRING (i.e, plain ASCII), and 8t for "internationalized" ICCCM-style COMPOUND_TEXT. Usually you'd just use UTF-8 though. xprop -remove CTWM_WM_ICON_NAME and click would let you undo it and go back to the normal naming. See the xprop(1) manual for more. π«Ά
π SOUNDS
If built with the USE_SOUND option, ctwm is able to play sounds for any X event. And this may be configured in two ways, bestie. π
As of 4.0.0, the sounds may be configured in the ctwmrc with the RplaySounds config parameter. See above for details.
If that is not found, or in older versions, ctwm will look for the file .ctwm-sounds in the user's home directory to map every X event to a sound file to be played. Each line in .ctwm-sounds has the following syntax:
{X event}: {sound file}
β οΈ IfRplaySoundsis given in the config file, and.ctwm-soundsexists, a warning will be given, and the contents of.ctwm-soundswill be ignored. All support for.ctwm-soundswill be removed in a future version, leaving only the ctwmrc configuration method available. So like... migrate, fr fr π
However configured, the currently known X events that can be given are:
KeyPressKeyReleaseButtonPressButtonReleaseMotionNotifyEnterNotifyLeaveNotifyFocusInFocusOutKeymapNotifyExposeGraphicsExposeNoExposeVisibilityNotifyCreateNotifyDestroyNotifyUnmapNotifyMapNotifyMapRequestReparentNotifyConfigureNotifyConfigureRequestGravityNotifyResizeRequestCirculateNotifyCirculateRequestPropertyNotifySelectionClearSelectionRequestSelectionNotifyColormapNotifyClientMessageMappingNotify
Additionally, the following two are recognised, and represent the time when ctwm is started or shut down:
StartupShutdown
π BUGS
Okay so, the receipts π§Ύ β here's what's known to be janky:
- The resource manager should have been used instead of all of the window lists.
- Double clicking very fast to get the constrained move function will sometimes cause the window to move, even though the pointer is not moved. π
- If
IconifyByUnmappingis on and windows are listed inIconManagerDontShowbut not inDontIconifyByUnmapping, they may be lost if they are iconified and no bindings tof.menu "TwmWindows"orf.warptoare setup. π
π FILES
See earlier Customization section. (Yeah, that's it. Go scroll. π )
π ENVIRONMENT VARIABLES
DISPLAYβ This variable is used to determine which X server to use. It is also set duringf.execso that programs come up on the proper screen. π₯οΈHOMEβ This variable is used as the prefix for files that begin with a tilde and for locating thectwmstartup file. π
π SEE ALSO
X(1), Xserver(1), xdm(1), xrdb(1)
Β©οΈ COPYRIGHT
Portions copyright 1988 Evans & Sutherland Computer Corporation; portions copyright 1989 Hewlett-Packard Company and the Massachusetts Institute of Technology, See X(1) for a full statement of rights and permissions.
See COPYRIGHT file in distribution for more information.
π AUTHORS
TWM
Tom LaStrange, Solbourne Computer; Jim Fulton, MIT X Consortium; Steve Pitschke, Stardent Computer; Keith Packard, MIT X Consortium; Dave Sternlicht, MIT X Consortium; Dave Payne, Apple Computer. π«‘
CTWM
Claude Lecommandeur, Swiss Polytechnical Institute of Lausanne (lecom@sic.epfl.ch); Richard Levitte (richard@levitte.org); Matthew Fuller (fullermd@over-yonder.net); and many other contributors. π
π VERSION
This manual is build for ctwm 4.1.0.
And that's a wrap on the whole entire page, bestie!! πβ¨ This edition of the manual is for ctwm 4.1.0, dated 2023-03-26, and it goes out to literally everyone who ever typed CTWM(1) into a terminal hoping for answers. You ate that. Go restyle your desktop. π
π¦
π¦ where this page comes from
- arch rolling: ctwm 4.1.0-5 Β· custom:MIT AND custom:X
- debian trixie: ctwm 4.1.0-1+b1 Β· HPND AND MIT
- ubuntu noble: ctwm 4.1.0-1build2 Β· HPND AND MIT
- ubuntu resolute: ctwm 4.1.0-1build3 Β· HPND AND MIT
- ubuntu stonking: ctwm 4.1.0-2 Β· HPND AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms