Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide

Customizing the Workspace Switch

There are several ways to customize the workspace switch:

To Change the Default Number of Workspaces

    Modify the following Workspace Manager resource:

	Dtwm*workspaceCount:						n

For more information, see To Change the Number of Workspaces on a System-Wide Basis.

To Change the Number of Switch Rows

    Modify the NUMBER_OF_ROWS field in the SWITCH definition.

For example, the following definition defines a three-row switch.

SWITCH Switch
 {
 	CONTAINER_NAME				box_name
 	NUMBER_OF_ROWS				3
   …
 }

To Change or Add Controls in the Workspace Switch

  1. Create a Front Panel configuration file with the control definition.

    • Specify that the control be inside the switch:

      		CONTAINER_NAME   Switch
       		CONTAINER_TYPE   SWITCH
    • Specify the position in the switch:

      		POSITION_HINTS    n
      

      where n is an integer. The positions are numbered sequentially left-to-right, top-to-bottom. (For the default two-row switch, the positions are 1 through 4.)

  2. Create the icon for the control. The recommended size is 16 by 16 pixels.

    For example, the following control puts a Terminal control in the switch.

    		CONTROL SwitchTerminal  
    {    
    	TYPE                  icon    
    	CONTAINER_NAME        Switch    
    	CONTAINER_TYPE        SWITCH    
    	POSITION_HINTS        3    
    	ICON                  Fpterm    
    	LABEL                 Terminal    
    	PUSH_ACTION           Dtterm    
    	HELP_TOPIC            FPOnItemTerm    
    	HELP_VOLUME           FPanel  
    }

    The control uses a built-in icon and the same help topic used by the Terminal control in the Personal Applications subpanel.