Solaris Common Desktop Environment: User's Guide

Customizing Workspaces

You can use the Front Panel workspace switch to rename workspaces and change the number of workspaces.

To Rename a Workspace

  1. Point to the workspace button of the workspace you want to rename.

  2. Choose Rename from the button's pop-up menu (displayed by pressing Shift+F10 or mouse button 3).

    The workspace button turns into a text field.

  3. Edit the text field.

  4. Press Return.

To Add Workspaces

  1. Point to any area in the workspace switch and press mouse button 3 to display the pop-up menu.

  2. Choose Add Workspace from the pop-up menu.

    The new workspace, named New, is placed at the end of the set of workspaces.

  3. Rename the workspace (see "To Rename a Workspace").

To Remove Workspaces

If you remove a workspace that contains windows, those windows are moved to the next workspace.

  1. Point to the workspace button of the workspace you want to remove.

  2. Choose Delete from the button's pop-up menu (displayed by pressing Shift+F10 or mouse button 3).

To Customize the Controls in the Workspace Switch

This is an advanced task that requires you to create a Front Panel configuration file. Advanced customization is covered in Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide.

Initially, the workspace switch has the four positions shown below.

Graphic

Use this procedure to replace one of these controls. (Blank is also a control.)

  1. Install the application you want placed in the switch into the Applications subpanel.

    For example, if you want to add a Display System Load control to the switch, drag it from the Desktop_Tools application group to the Applications subpanel.

  2. Locate the Front Panel configuration file created automatically when you installed the control in the Applications subpanel. The definition is located in the directory $HOME/.dt/types/fp_dynamic.

    For example, when Display System Load is added to the Applications subpanel, it creates the file Xload1.fp.

  3. Move the file from the $HOME/.dt/types/fp_dynamic directory to the $HOME/.dt/types directory.

  4. Open the file in the $HOME/.dt/types directory for editing.

    Edit the lines that define the CONTAINER_TYPE and CONTAINER_NAME to the following:

    CONTAINER_TYPE SWITCH
    CONTAINER_NAME Switch

  5. Edit the line that defines the position (POSITION_HINTS). For example, to put the control in the Blank location, set:

    POSITION_HINTS					3

  6. Save the configuration file.

  7. Create another file in the $HOME/.dt/types directory.

    The file name must end with .fp. For example. you might create a new file $HOME/.dt/types/DeleteBlank.fp.

  8. Open the file for editing.

  9. Open the file /usr/dt/appconfig/types/language/dtwm.fp in another editor window.

    This file is read-only. You will not have to write to it.

  10. In /usr/dt/appconfig/types/language/dtwm.fp, find the definition for the switch control you are replacing.

    For example, this is the definition for the Blank control:

    CONTROL Blank
     {
     	TYPE					blank
     	CONTAINER_NAME					Switch
     	CONTAINER_TYPE					SWITCH
     	POSITION_HINTS					3
     	ICON					FpblnkS
     	HELP_TOPIC					FPOnItemSwitch
     	HELP_VOLUME					FPanel
     }

  11. Copy the definition for the control you are replacing from /usr/dt/appconfig/types/language/dtwm.fp to the new configuration file.

    For example, you would copy the definition for the Blank control to the new file $HOME/.dt/types/DeleteBlank.fp.

  12. Add the line DELETE True to the end of the definition, within the curly braces:

    CONTROL Blank
     {
     	... 	HELP_VOLUME					FPanel
     	DELETE					True
     }

  13. Save the file.

  14. Choose Restart Workspace Manager from the Workspace menu.

Front Panels and Multiple Screens

CDE for Solaris supports multi-headed systems, or multiple screens on the same workstation. This effectively adds space to your CDE desktop. By default, each screen on your system has its own Front Panel.

Each Front Panel is handled separately by CDE, so changes made to one Front Panel will not affect others. See "Miscellaneous Configurations" and "Advanced Front Panel Configuration" in Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide.