oswm(1)
NAME
oswm − OpenStep window manager for Solaris OpenStep
SYNOPSIS
oswm [ options ]
DESCRIPTION
Oswm is a window manager that implements parts of the Solaris OpenStep graphical user interface. Oswm is based on the OPEN LOOK window manager and supports Sun’s Solaris OpenStep and WorkShop OpenStep products.
OPTIONS
Most command-line options have counterparts in the resource database. A command-line option will override any setting from the resource database.
−bg color, −background color
Specifies the color of the title bars of inactive windows.
−c, −click
Use click-to-focus mode. This is the default focus mode.
−depth depth
Specifies the depth of the visual in which oswm is to run. See the discussion in the Screen Resources section for further information about depths.
−display display-string
Specify the name of the display to manage. Overrides the DISPLAY environment variable, if any. In addition, the display string is exported to oswm’s environment, so processes forked from oswm will inherit this value.
−dsdm
Specify that oswm should provide the Drop Site Database Management (DSDM) service. This is the default.
−f, −follow
Use focus-follows-mouse mode. Default mode is click-to-focus.
−fn font-name, −font font-name
Set the font for window titles.
−fg color, −foreground color
Specifies the foreground color. See the description of the ForegroundColor resource.
−kbg color, −keybackground color
Specifies the background color of the title bar of the key window.
−kfg color, −keyforeground color
Specifies the foreground color of the title bar of the key window.
−multi
Manage windows on all screens that a display supports. This is the default.
−name resource-name
Use resource-name to look up resources in the resource database.
−nodsdm
Specify that oswm should not provide the Drop Site Database Management service. The default is to provide the service.
−single
Manage windows for a single screen only, using the default screen for the specified display. Overrides the −multi option.
−syncpid process-id
When oswm has completed its initialization, it will send a signal (SIGALRM by default) to process-id. The signal will be sent only if this option is present. This is useful for running oswm from shell scripts (such as .xinitrc) in such a way that the script waits for oswm to finish its initialization, while leaving oswm as a child process of the shell script. This can be done using the following sh(1) construct:
sleep 15 & pid=$!
oswm −syncpid $pid &
wait $pid
−syncsignal signal
Specifies the signal to send instead of SIGALRM. The signal is specified as a number, not symbolically.
−visual visual-class
Specifies the class of the visual in which oswm is to run. See the discussion in the Screen Resources section for further information about visuals.
−xrm resource-string
Specify resources on the command-line. Resources specified here will override resources found in resource files.
DEBUGGING OPTIONS
The following options are strictly for debugging. They are not recommended for general use. Don’t use them unless you know what you are doing.
−all Print a message for every event received.
−debug
Equivalent to turning on all debugging options.
−orphans
Print orphaned events. Orphaned events are events that are associated with a window or frame that has no entry in the frame hash table, or events that are not handled by the various event handlers.
−warnings
Print warnings from X protocol errors
−synchronize
Run the window manager in synchronous mode.
INTERNATIONALIZATION OPTIONS
−basiclocale locale-name
Specifies the basic X/Open locale category setting. This category will be the base for other locale categories.
−displaylang locale-name
Specifies the display language X/Open locale category. This category affects the contents of workspace menu, window menu and notice messages.
−numeric locale-name
Specifies the numeric format X/Open locale category. This category affects the numeric format displayed in any message that contains numerics.
LOCALE HANDLING
The locale is the set of language and cultural conventions used by a program. The locale controls the language-dependent part of oswm’s behavior. The OPEN LOOK international extensions have defined several locale categories as follows:
Basic Locale
This is the basic setting for the entire locale mechanism. This category specifies internal character handling behavior.
Display Language
This category specifies the language used for displaying menus, notice messages, and error messages.
Input Language
This category specifies the language used for text input. This category has no effect on oswm, because it does not accept text input from the keyboard.
Date Format
This category specifies the format of date and time. This category has no effect on oswm, because it does not display any date and time information.
Numeric Format
This category specifies the format of displayed numeric data.
The Basic Locale setting determines the character set used by oswm. The other locale categories can differ from the basic setting, but they cannot require a different character set from the Basic Locale. The following restrictions thus apply:
1.If basic locale setting is the "C" locale, then all other locale categories must be in the "C" locale.
2.If the Basic Locale is set to a locale other than the "C" locale, then all other locale categories must be set either to a locale that uses the same character set as the basic setting, or to the "C" locale.
The following methods are available to inform oswm of the locale settings, listed in order of priority:
1.Command line options (such as −basiclocale);
2.by resource database; and
3.setlocale(3C) function defaults (e.g. LANG environment variable).
INPUT FOCUS
The input focus is the window that will receive keystrokes. oswm has two different input focus modes, which are different ways of transferring the input focus from one window to another. By default, oswm uses "click-to-focus" (also known as "click-to-type") mode. This means that you must click on the window in order to get the focus to it. While a window has the input focus, the pointer can be anywhere on the screen; the keyboard events will still go to that window. You can set the input focus to a window and simultaneously raise it to the top by clicking the left mouse button in the window’s title bar or border.
oswm has another focus mode called "focus-follows-mouse". In this mode, whatever window the mouse is pointing to will receive the input focus. To switch the input focus from one window to another, you simply move the pointer to the other window; you don’t have to click at all. Note, however, that to transfer the focus amongst subwindows of a single top-level window, you must click in the subwindow, or you must use focus transfer function keys (if available from the application).
The input focus mode can be controlled with command-line options or by entries in the resource database. Neither focus mode has inherent advantages. Which one you choose is a matter of personal preference.
MOUSE BUTTONS
OpenStep defines two mouse button functions: SELECT and MENU. On systems with three mouse buttons, these functions are mapped to buttons 1 and 3 (left and right) respectively. On systems with two mouse buttons, SELECT is on button 1 (left) and MENU is on button 2 (right). On systems with a single mouse button, that button is SELECT.
MANIPULATING WINDOWS AND ICONS
Window Title Bar and Borders.
Clicking SELECT selects the window, raises it above other windows, and deselects any other objects. In click-focus mode, the focus is also transferred to this window. Pressing and holding SELECT and then dragging the mouse will move windows without raising them or setting the focus. If this window is selected, it and all other selected windows are moved simultaneously. Otherwise, just this window is moved, and it is not selected. If you hold down the Control key while you are moving a window, motion in both the vertical and horizontal directions is slower.
When you move a window or an icon, it will pause when it touches the edge of the screen. This is to allow you to easily position windows right up against the edge of the screen. If you move farther, the window or icon will continue to move past the edge. For more information, see the EdgeMoveThreshold resource.
Command-clicking SELECT on the title bar lowers the window.
Alt-clicking SELECT on the title bar raises the window without transferring the focus to it.
Double-clicking SELECT on the window is the same as selecting the Full Size (or Restore Size) menu item.
Resize Bar.
The resize bar is the narrow gray border along the bottom of most windows. The resize bar is divided into three regions (two end regions and a middle region). You can resize a window by pressing and holding SELECT over any of the resize regions and then dragging the mouse to the new location. Releasing the mouse button will set the new size of the window. Dragging horizontally from an end region changes the width. Dragging diagonally from an end region changes the width and height. Dragging vertically from the middle region changes the height.
Miniaturize Button.
The miniaturize Button is the small button with a miniature window icon at the left side of the title bar. If you want to put a window aside without actually closing it, you can miniaturize it. When you miniaturize a window, the window shrinks into a miniwindow icon at the bottom of the screen. Clicking SELECT over the miniaturize Button will miniaturize the window.
Close Button.
The close Button is the small button with a X icon at the right side of the title bar. When you are finished with a window, you can close it to get rid of the window completely. Clicking SELECT over the close Button will close the window. On OpenStep windows, a partially drawn close button usually means that the window contains unsaved work. When you save, the button returns to normal.
Miniwindows.
An miniwindow represents a closed window. You can still do most of the same operations as with an open window. Moving and selecting miniwindows with SELECT is exactly the same as for open windows. Double-clicking SELECT will open the miniwindow. Miniwindows cannot be resized.
MENU OPERATION
Each OpenStep application has a main menu that is displayed when you are working in the application. OpenStep menus are operated using the SELECT button. Some commands perform an action on something you have selected, such as text, an icon, or a window. Other commands open a panel--a small window that may ask for more instructions--or another menu called a submenu.
Oswm pop-up menus are operated using the MENU mouse button. There are two methods of operating with the menus: the "click-move-click" method and the "press-drag-release" method. You choose the method either by clicking the MENU button (pressing and releasing it quickly) or by pressing it down and holding it. If you click the MENU button, the menu will pop up and will stay up indefinitely. To continue operating the menu, click the MENU button over a menu item. To dismiss the menu, click the MENU button on an area of the screen outside the menu. To operate menus in press-drag-release mode, press the MENU button and hold it down while you move the mouse. The menu will remain on the screen as long as you hold down the MENU button. To execute an action, move the pointer over a menu item and release the mouse button. To dismiss the menu, move the pointer outside the menu and release the MENU button.
Some oswm menu items have a submenus. This is indicated by a right-pointing triangle at the right edge of the item. To activate a submenu, click on the item (in click-move-click mode) or move the pointer to the item and then move toward the right edge of the menu (in press-drag-release mode).
DESKTOP MENU
Pressing MENU over the workspace brings up the Desktop Menu. This menu is customizable, but it typically contains at least the following items. (The items may appear in a different language depending on the current locale setting.)
Programs
This item has a sub-menu that allows you to invoke applications. The default Programs sub-menu contains all of the programs in the OpenWindows DeskSet. However, users typically customize this menu to contain many more programs and to contain nested sub-menus. See the section on Menu Customization for further information.
Utilities
This item has a sub-menu that contains several utility functions for the workspace, including "Toggle Drag Style" (toggles between dragging window content and outline), Refresh (redisplay all windows on the screen), and Lock Screen.
Window List
This item brings up a menu containing the names of every window on the current screen (if oswm is managing multiple screens, only windows on the current screen will be shown). Windows which are iconified are preceded with a graphic symbol.
OpenWindows Props...
This item brings up the OpenWindows Workspace Properties window, which allows you to view and customize settings of the OpenWindows environment.
Workstation Info...
This item displays information about your workstation’s environment.
Exit Shuts down all applications and exits the window system. A confirmation notice will appear first to give you a chance to cancel the operation.
WINDOW MENU
The window menu of most windows has the following items. (The items may appear in a different language depending on the current locale setting.)
Miniaturize
Turns the window to an miniwindow. Any Panels that were open are unmapped. Panels will reappear when the miniwindow is opened. This item is "Restored" if you bring up this menu over an miniwindow.
Full Size
Expands the window to the full height of the screen. If this has already done, the button is Normal Size instead of Full Size. Normal Size restores the window to the size it was before you did the Full Size operation. If the application has specified a maximum size for the window, this size is used for Full Size instead of the full screen height.
Move Starts the keyboard-based form of moving the window. Appears only if OPEN LOOK Mouseless Mode is enabled.
Resize
Starts the keyboard-based form of resizing the window. Appears only if OPEN LOOK Mouseless Mode is enabled.
Send to Back
Moves the window behind all other windows.
Refresh
Clears and redisplays the window.
Close Kills the program running in the window and removes the window. If the application has elected to participate in the WM_DELETE_WINDOW protocol, oswm sends a WM_DELETE_WINDOW ClientMessage instead of killing that window.
Panels windows (as opposed to primary windows) have a smaller window menu. It lacks the Close, Full Size, and Quit items, but it has two new items:
Close Causes the window to be closed. This button has a sub-menu with two items: This Panel, which closes just this window, and All Panels, which closes all panel windows owned by this application.
Owner?
Raises and flashes the title bar of the window that "owns" this panel window.
MENU CUSTOMIZATION FILES
You can customize oswm’s Desktop Menu by putting a menu description into a file that oswm will read. When it starts up, oswm will first look for a file named by the OSWMMENU environment variable. If this variable does not exist, or if the file is not readable, oswm will then look for a custom OpenStep menu file in your home directory. If this file is not present or is unreadable oswm will look for a custom menu file in your home directory. Oswm will search for the following files to be used as the oswm Desktop Menu:
$HOME/.openstep-menu
$HOME/.openwin-menu
$OPENSTEPHOME/lib/openstep-menu
$OPENWINHOME/lib/openwin-menu
If, for some reason, these menu files cannot be found, oswm will use a minimal, built-in menu. The menu file that is read can also be modified by the display language locale setting. The locale name is used as a suffix for the filename. If a localized menu file is found, it is used in preference to the non-localized menu file. For example, if the display language locale is "japanese", the file .openstep−menu.japanese will take precedence over the file .openstep−menu. If oswm encounters a syntax error during the reading of any menu file, a message is printed to the standard error file and the reading of this menu file is considered to have failed. Oswm will then attempt to read the next file in the sequence as described above.
MENU SPECIFICATION SYNTAX
The menu specification language has a number of keywords, all of which are in all upper case letters. The keywords are not translated into the language specified by the the locale category settings. Keywords are always in English.
Each line typically specifies one menu button. There are two fields on each line: a label and a command. The label is either a single word or a string enclosed in double quotes. This is the label that appears in the menu button. The rest of the line (excluding leading whitespace) is considered to be a command. It is executed by sending it to sh(1). Any shell metacharacters will be passed through to the shell unchanged. The command field can be extended onto the next line by placing a backslash ‘\’ at the end of the line. The newline will not be embedded in the command.
An sub-menu is specified using the special keyword MENU in place of a command. A button is added to the current menu, and clicking or pulling right on this button will bring up the sub-menu. Subsequent lines in the menu file define buttons for the sub-menu, until a line that has the special keyword END in the command field is encountered. The label of the MENU line must match the label on the END line, otherwise an error is signaled. Sub-menus can be nested arbitrarily, bracketed by MENU and END lines with matching labels.
Sub-menus can be defined in a different file using either the MENU or the INCLUDE keyword. To include a sub-menu from another file, use a line with a label, either the MENU or the INCLUDE keyword, and then the filename. The file so named is assumed to contain lines that specify menu buttons. The sub-menu file need not have any MENU or END lines (unless it has sub-menus itself). The current file need not have a matching END line if the sub-menu is read from another file. Sub-menu files included with the MENU keyword are considered to be an integral part of the menu tree, and any error encountered during reading of the file will cause the entire menu to be considered invalid. A sub-menu file included with the INCLUDE keyword is considered optional, and any error encountered during reading of the file is not considered fatal. If an error occurs during INCLUDE processing, a disabled (grayed-out) item is inserted in place of the sub-menu and processing of the current menu file continues.
By default, the label in a menu button is used as the title of the sub-menu. This can be overridden by specifying a line that has the special keyword TITLE in the command field. The label from this line will be used as the sub-menu’s title. This line can appear anywhere in the sub-menu definition. It does not add an item to the menu.
The following keywords can be used in the command field of a menu item. They specify functions that are internal to oswm, that are not invoked by running a shell.
BACK_SELN
Move the selected windows and icons behind other windows.
EXIT
Kills all applications and exits the window manager after getting confirmation from the user. This is useful for exiting the entire window system.
EXIT_NO_CONFIRM
Like EXIT but skips the confirmation notice.
FLIPDRAG
Toggle the state of the DragWindow resource.
FLIPFOCUS
Toggle the state of the SetInput resource.
FULL_RESTORE_SIZE_SELN
Toggle the full-sized/normal-sized states of the selected windows and icons.
NOP
No operation; don’t do anything.
OPEN_CLOSE_SELN
Toggle the opened/closed states of the selected windows and icons.
QUIT_SELN
Quit the selected windows and icons.
PROPERTIES
Bring up OpenWindows Props.
REFRESH
Refresh causes all windows on the screen to be repainted.
REREAD_MENU_FILE
Force an immediate rereading of the workspace menu customization file. Oswm will start a complete search for a menu file (as described in the Menu Customization section) and use the first valid file it finds.
RESTART
Restart the window manager by issuing an exec(2) on argv. This shouldn’t affect any running applications, nor should it cause the server to shut down.
START_DSDM
Start providing the DSDM service. See the section on Drag and Drop for further information.
STOP_DSDM
Stop providing the DSDM service. See the section on Drag and Drop for further information.
WINMENU
Lists all windows on the screen.
WMEXIT
Exit the window manager without killing any applications.
Here is an example root menu specification.
"My Custom Menu" TITLE
Programs MENU
"Command Tool"DEFAULT cmdtool
"Text Editor"textedit
Mailmailtool
"File Manager"filemgr
OtherMENU
"Other Tools"TITLE
"Shell Tool"shelltool
"Icon Editor"iconedit
Clockclock
"Perf Meter"DEFAULT perfmeter
OtherEND
ProgramsEND
"Repaint Screen"REFRESH
LogoutEXIT
GLOBAL RESOURCES
Global resources in oswm consist of two resource components. The first component in the resource name is taken from the trailing pathname component of argv[0]. This value is typically ‘oswm’. This name can be altered by using the −name command-line argument. The second resource component names the global attribute being set. It should be one of the names from the following list. Thus, to set the DragWindow attribute, one would use "oswm.DragWindow" as the resource specification.
Oswm will automatically pick up changes to many of these resources if the resource database changes at run-time. One can thus modify oswm’s behavior by changing the resource database with xrdb(1) or with Workspace Properties. If a resource value is specified on oswm’s command line, it will override the value in the resource database, and thus changing the resource’s value in the database will have no effect on this resource setting.
Colors can be specified using the formats parsed by the Xlib XParseColor() function. Common formats are color names (see showrgb(1)) and explicit red, green, and blue values in hexadecimal, preceded by a ‘#’. For example, a cyan (full green and blue) would be specified with "#00ffff".
Boolean values can be specified with the words "true", "false", "on", "off", "yes", "no", "1", "0", "t", and "nil".
AutoRaise (boolean)
Raise windows automatically when they receive the focus. This is useful in click-to-focus if you always like to type into the topmost window. This is useful in focus-follow-mouse when the AutoRaiseDelay resource is set to a reasonable value. Default value: false.
AutoRaiseDelay (integer)
Amount of time to delay, in microseconds, between a window receiving the focus and raising it above other windows. Effective only when the value of the AutoRaise resource is true. Default value: 0. Background (color) Specifies the background color of the title bars of inactive windows. This is used for the background of miniwindows.
BasicLocale (locale name)
Specifies the basic OPEN LOOK locale category setting. See the section on Locale Handling for more details.
DefaultIconImage (filename)
Specifies a file containing a bitmap to be used as the default icon image.
DefaultIconMask (filename)
Specifies a file containing a bitmap to be used as the default icon mask.
DefaultTitle (string)
Specifies the string to be used in the title bar of windows that have not provided a string in the WM_NAME property. Default value: No Name.
DisplayLang (locale name)
Specifies the display language OPEN LOOK locale category. See the section on Locale Handling for more details.
DragThreshold (integer) ∗
This is the number of pixels the mouse must move while a mouse button is down in order to have the action be considered a drag. If the mouse moves fewer than this number of pixels while the button is down, it is considered to be click instead of a drag. Default value: 5.
DragWindow (boolean)
If true, drags the entire image of the window when you move it. Otherwise, just drags the window outline. Default value: true.
EdgeMoveThreshold (integer)
Specifies the amount of "hysteresis" provided when moving windows past the edge of the screen. When you move a window or an icon, it will pause when it touches the edge of the screen. This is to allow you to easily position windows right up against the edge of the screen. If you move farther, the window or icon will continue to move past the edge. You can prevent windows from ever lapping off the screen by setting an extremely large value (say, 10000) for this resource, and you can disable this feature entirely by specifying a value of zero. Default value: 10.
FocusLenience (boolean)
If this is set to true, oswm will not enforce the ICCCM requirement that windows must have the input hint set in order to receive the input focus. This option is useful if you run clients that aren’t ICCCM-compliant, like many X11R3-based clients. Default value: true.
Foreground (color)
Specifies the foreground color. This color is used mainly for the text of window and icon titles and in menus. Default value: black.
IconFont (font name)
Font used for icon names. Default: lucidasans-10.
IconLocation (enumeration) ∗
One of the words "top-lr", "top-rl", "bottom-lr", "bottom-rl", "left-tb", "left-bt", "right-tb", or "right-bt". These specify that icons should be arranged along a particular edge of the screen, ordered from left to right or top to bottom as appropriate. The words "top", "bottom", "left", and "right" are synonyms for "top-lr", "bottom-lr", "left-tb", and "right-tb", respectively. Default value: bottom.
KeepTransientsAbove (boolean)
Specifies whether oswm should attempt to keep transient windows above their owner window. Default value: false.
KeyBackground (color)
Specifies the background color for key windows. This color is used mainly for the background of window title bars and icons.
KeyForeground (color)
Specifies the foreground color for key windows. This color is used mainly for the text of window title bars and icon titles.
MenuFont (font name)
Font to be used for buttons in menus and OSWM attention panels. Default value: lucidasans-12.
MinimalDecor (list of strings)
Specifies a list of windows that are to be decorated minimally. Decoration on such windows includes only a thin border and resize corners, with no title bar or window button. The value should be a whitespace-separated list of strings. Each string should specify an application’s class or instance name, as passed in the WM_CLASS property. Most applications set this property based on the name of the executable (i.e. argv[0]). For example, to specify that the clock and the calculator should be decorated minimally, you would use the following resource:
oswm.MinimalDecor: calctool clock
Many applications will allow you to override the value of the WM_CLASS property using the −name option on the command line. Default value: (null).
MultiClickTimeout (integer) ∗
The time, in tenths of a second, that differentiates a double-click from two single clicks. This value is also used to distinguish the click-move-click and press-drag-release modes of pop-up menus. If the MENU button is held down longer than this amount of time, the menu is considered to be in press-drag-release mode, otherwise it is considered to be in click-move-click mode. Default value: 5.
Numeric (locale name)
Specifies the numeric format OPEN LOOK locale category. See the section on Locale Handling for more details.
PaintWorkspace (boolean)
If true, oswm will use the WorkspaceColor resource to set the workspace (root window) background color. If false, oswm will not change the root window background. This is useful If you prefer to set your own workspace color using xsetroot(1) or a similar program. Default value: true.
PPositionCompat (boolean)
Turns on backward compatibility for older applications that have a habit of always setting the PPosition flag in the WM_NORMAL_HINTS property, even when they haven’t set a position. This most often occurs with X11R3-based clients. Without backward compatibility, these windows will always appear in the upper-left corner of the screen. With backward compatibility, these windows will be positioned according to the default OPEN LOOK window placement policy, along the diagonal of the screen. This option will not affect windows that have a geometry specified on the command line. Default value: true.
PopupJumpCursor (boolean) ∗
Specifies whether to warp the cursor to pop-up windows. Works only for OpenWindows applications, not for OpenStep applications. Default value: false.
PrintWarnings (boolean)
Determines whether oswm will issue non-fatal warning messages (such as X protocol errors) to its standard error file. Default value: false.
RubberBandThickness (integer)
Specifies the thickness of the "rubber-band" line that is drawn when a window is resized, when a group of windows is selected by dragging a rectangle on the root, and when a window is moved and the value of the DragWindow resource is false. Default value: 2.
SetInput (enumeration) ∗
Controls the input focus mode. If the value is "select", it means click-to-focus. If the value is "followmouse", it means focus-follows-mouse. Default value: select.
ShowMoveGeometry (boolean)
Indicates whether the geometry box should be shown while moving windows and icons. Default value: false.
ShowResizeGeometry (boolean)
Indicates whether the geometry box should be shown while resizing windows. Default value: false.
StartDSDM (boolean)
Determines whether oswm will provide the DSDM service for OpenWindows applications. Default value: true.
TextFont (font name)
Font used in the text of OSWM attention panels. Default: lucidasans-12.
TitleFont (font name)
Font used in title bars atop windows and menus. Default: lucidasans-12 Bold.
TransientsSaveUnder (boolean)
Specifies whether the save-under attribute of frames of transient windows is to be forced on. Default value: false.
WindowCacheSize (integer)
oswm keeps a cache of windows in order to minimize unnecessary window creation and destruction. The value of this resource specifies the size of this cache. Setting this resource to zero disables the window cache. Default value: 500.
WindowMenu (boolean)
Specifies whether a pop-up window menu appears when when pressing the MENU moust button over a window’s title bar or resize handle. Default value: False.
WorkspaceBitmapBg (color specification)
Specifies the background color used for the workspace bitmap when the WorkspaceStyle resource is "tilebitmap". Default value: black.
WorkspaceBitmapFg (color specification)
Specifies the foreground color used for the workspace bitmap when the WorkspaceStyle resource is "tilebitmap". Default value: white.
WorkspaceBitmapFile (filename)
Specifies a X bitmap file that will be used for the workspace background when WorkspaceStyle is "tilebitmap". If the filename is not a full path name, the following directories are searched:
$OPENWINHOME/etc/workspace/patterns
$OPENWINHOME/include/X11/include/bitmaps
/usr/X11/include/X11/include/bitmaps
Default value: gray.
WorkspaceColor (color) ∗
Specifies the color for the workspace (root window). On startup, oswm will set the root window’s background color to the color specified by this resource, and it will restore the default background on shutdown. To turn off this behavior, see the description of the PaintWorkspace resource.
WorkspaceStyle (enumeration)
This controls how the workspace is painted. If the value is "paintcolor", the solid color specified by the WorkspaceColor resource is used. If the value is "tilebitmap", the workspace is tiled with a bitmap using the WorkspaceBitmapFile, WorkspaceBitmapBg, and WorkspaceBitmapFg resources. If the value is "default", the server default root-weave pattern is used. If the value of the PaintWorkspace resource is false, then all of these resources are ignored and the workspace color or pattern is left unchanged. Default value: paintcolor
SCREEN RESOURCES
In addition to the global resources described above, oswm also uses screen-specific resources. The first component of the resource specification is the trailing pathname component of argv[0]. The second component is the screen number appended to the string ‘screen’. The screens are numbered sequentially starting from zero. The third component of the resource name is the name of the resource itself. For example,
oswm.screen1.WorkspaceColor:gray
set the workspace color on screen number 1 to gray. Generally, users should use the OpenStep Preferences.app to set the WorkspaceColor. To affect all screens, you can use resource wildcarding. For example, ‘oswm∗KeyBackground: MidnightBlue’ will set KeyBackground for all screens oswm manages.
Unlike many of the global resources, the screen-specific resources are only applied at oswm startup.
The following resources are available both globally and on a per-screen basis. A screen-specific resource overrides the corresponding global setting for that screen. Note that screen specific settings for WorkspaceColor and WindowColor will only affect oswm; this may cause clashes with XView clients which only use the global setting.
Background
Foreground
KeyBackground
KeyForeground
WorkspaceColor
The following resources allow the selection of visuals other than the screen’s default. Available visuals may be listed with the xdpyinfo(1) command.
Depth (integer)
Specify the visual depth to be used when searching for visuals. Default value: none.
Visual (enumeration)
Specify the visual class to be used when searching for visuals. Valid visual classes are StaticGray, GrayScale, StaticColor, PseudoColor, TrueColor, and DirectColor. Names are case-sensitive. Default value: none.
VisualID (id)
Specify the visual ID to be used. Note: specifying a visual by its ID is not portable, as IDs may vary from server to server and even from one invocation of a server to the next. Default value: none.
ENVIRONMENT
DISPLAY
Specifies the X11 server to which to connect.
LANG, LC_CTYPE, LC_MESSAGE, LC_TIME
These variables specify which locale to use when other methods of locale announcement are not available. (See the section on Locale Handling for more details.)
OSWMMENU, OLWMMENU
Specifies a file to use for the Desktop Menu.
OPENSTEPHOME
Specifies the location of the OpenStep software.
FILES
$HOME/.openstep/.oswmdefaults
Contains oswm resources set by OpenStep apps (e.g. Preferences.app)
$HOME/.openstep−menu.localename
$HOME/.openstep−menu
Contains the user-customized Desktop Menu specification.
$HOME/.openwin−menu
Contains the user-customized Desktop Menu specification.
$OPENSTEPHOME/lib/openstep−menu.locale-name
$OPENSTEPHOME/lib/openstep−menu
Contains the default Desktop Menu specification.
$OPENWINHOME/lib/openstep−menu
Contains the default Desktop Menu specification.
$OPENSTEPHOME/lib/app−defaults/Oswm
$OPENSTEPHOME/lib/locale/locale-name/app−defaults/Olwm
Specifies system-wide default resource values.
TRADEMARKS
OPEN LOOK is a registered trademark of Novell, Inc.
The X Window system is a trademark of the Massachusetts Institute of Technology.
OpenWindows is a trademark of Sun Microsystems, Inc.
OpenStep is a trademark of NeXT Software, Inc.
REFERENCES
Rosenthal, David S.H. Inter-Client Communication Conventions Manual for X11. Copyright 1989 by the Massachusetts Institute of Technology. This document is commonly known as the ICCCM. It is an X Consortium Standard that specifies conventions to which all X11 clients must adhere.
OPEN LOOK Graphical User Interface Functional Specification. Copyright 1989 by Sun Microsystems, Inc. Addison-Wesley Publishing Company, Inc. ISBN 0−201−52365−5.
OPEN LOOK Graphical User Interface International Extensions Functional Specification. Draft 1.1 (May 10, 1990). Copyright 1990 by Unix International.
SEE ALSO
dsdm(1), olwmslave(1), openstep(1), openwin(1), owplaces(1), props(1), setlocale(3C), xinit(1), Xsun(1)
NOTES
The resource names do not follow any classing structure. There is no general way to specify resources on a per-client basis.
The Exit menu item on the Desktop Menu doesn’t really shut down the server. It kills off all clients being managed by the window manager, and then it exits the window manager itself. This works properly if some outside agent such as xinit(1) or xdm(1) is waiting for the window manager or a client to exit. The outside agent will take care of shutting down the server or reinitializing it. If you’ve started up the server a different way, this option may not work. Instead, the server will be left running with no clients and no window manager running, and you will have to login from elsewhere to kill the server. A common cause of this problem is an .xinitrc script that inadvertently leaves a non-windowed application (such as a daemon) running in the background. If the .xinitrc script ends with the wait shell command, it will never terminate. The fix is to change the script to either wait for a particular process-id, or to run the daemon in a subshell:
(daemon &)
Oswm cannot manage multiple locales at one time, therefore all clients should be running in the same locale. The "C" locale is the exception. Applications using the "C" locale (such as non-internationalized applications) can be mixed with applications using one other locale.
Oswm does not handle different sizes of the glyph fonts well. Each locale can define a different size for the default font (for example, the default glyph font size is 12 for the "C" locale and is 14 for the "japanese" locale). Oswm does not re-position the window decorations after switching locale, therefore the window decorations may appear to be wrong. To remedy this problem partially, oswm will not change the font when locale is switching from non-"C" locale to the "C" locale.
There is no input focus feedback for non-rectangular windows. The title string of non-rectangular windows cannot be displayed. Non-rectangular icon windows are not supported.
Oswm will not dynamically track screen-specific and client-specific resources. Changes to global resources, key binding resources, and modifier resources are applied dynamically.
Resources that specify time values use inconsistent units. Some resources are in tenths of a second, some are in milliseconds, and some are in microseconds.
SunOS 1.1 — Last change: 06 Feb 1997