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

Button Binding Syntax

The syntax for button bindings is:

Buttons ButtonBindingSetName
 {
     [modifier]<button_nameMouse_action>   context  function  [argument]
     [modifier]<button_nameMouse_action>   context  function  [argument]

where:

button_nameBtn1—Left mouse button Btn2—Middle button (3-button mouse) or both buttons (2-button mouse) Btn3—Right button Btn4—Buttons 1 and 2 together on a 3-button mouse Btn5—Buttons 2 and 3 together on a 3-button mouse

modifierCtrl, Shift, Alt, Lock

mouse_actionDown—Holding down a mouse; button Up—Releasing a mouse button; Click—Pressing and releasing a mouse button; Click2—Double-clicking a mouse button; Drag—Dragging the mouse while holding down the mouse button

context—indicates where the pointer must be for the binding to be effective. If necessary, separate multiple contents with the "|" character.

root—The workspace window; window—Client window or window frame; frame—Window frame, excluding the contents; icon—Icon; title—Title bar; app—Client window (excluding the frame)

function—one of the window manager functions. Refer to the dtwmrc(4) man page for a list of valid functions.

argument—any window manager function arguments that are required. Refer to the dtwmrc(4) man page for details.

For example, the following line causes the menu described in DtRootMenu to be displayed when mouse button 3 is pressed while the pointer is in the workspace window (but not within client windows).

<Btn3Down>      root     f.menu     DtRootMenu

Note –

For complete information on button binding syntax, see the dtwmrc(4) man page.