|
|
To create a new button binding set, perform the following steps.
$HOME/.pmwmrc for individual changes
$HOME/.mwmrc for individual changes
or
MwmbuttonBindings: bindings_set_name
See also:
If you want to make system-wide changes to the default button bindings, open the system-wide window manager configuration file, /usr/lib/X11/system.pmwmrc if you are using pmwm mode or system.mwmrc if you are using mwm mode. The system-wide file contains the default functionality for the window manager button bindings.
If you want to customize the button bindings in your local Graphical Environment, edit your personal window manager configuration file, $HOME/.pmwmrc if you are using pmwm mode or $HOME/.mwmrc if you are using mwm mode. The personal configuration file is not provided with the system by default. If it does not already exist, you must create your own by copying the appropriate system-wide window manager configuration file to .pmwmrc or .mwmrc in your $HOME directory.
See also:
When you locate the ``DefaultButtonBindings'' section, you see entries with the following syntax:
Buttons DefaultButtonBindings { button context function button context function . . }
Each button binding definition consists of button event, function, and context specifications. Use the template you created in Step 2 to create these new specifications.
where:
modifier_list = modifier_name {modifier_name}
See ``Button event definitions'' and ``Modifiers'' for lists of the values that can be used for button_event_name and modifier_name.
where function_name is one of the valid window manager functions, and function_args is a valid argument to the function. If function_args contains more than one word, the argument must be contained in quotes.
See ``Using window manager functions'' for a complete list and a detailed explanation of all the default window manager functions.
The context specification defines the context in which the button specification becomes active; it indicates where the pointer must be for the button specification to be effective. The button specification can be active in more than one context. See ``Button binding contexts'' for a list and description of the values that can be used for context.
Define the new button binding set through the buttonBindings resource, using the appropriate resource file.
If you are making local changes, you must define the new binding set in the $HOME/.Xdefaults-hostname file. (If this file does yet not exist, create a file in your $HOME directory named .Xdefaults-hostname, where hostname is the name of the host, or machine, where the window manager is running.)
If you want the new button bindings to be used by all users on your system, specify the resource in /usr/lib/X11/app-default/Pmwm (if you are using pmwm mode) or /usr/lib/X11/app-default/Mwm (if you are using mwm mode).
The syntax of the resource specification is the same
for all of the window manager configuration files:
PmwmbuttonBindings: new_button_bindings_set_name
or
MwmbuttonBindings: new_button_bindings_set_name
See also:
After you create your new button binding set, you must restart the window manager so your changes can take effect. Restart the window manager by selecting the Restart Window Manager option from the Root menu. The Root menu is accessed by pressing and holding mouse button 1 on the Desktop background or, if the Desktop is not running, in the Root window.
Verify that the new button binding set was created correctly by testing your new button sequences in the appropriate contexts. The button bindings are effective immediately after the window manager is restarted.