Help:Actions

From Openbox

(Difference between revisions)
Jump to: navigation, search
(Execute)
Line 21: Line 21:
 
Example:
 
Example:
 
<code><pre>
 
<code><pre>
 +
<keybind key="W-space">
 +
  <action name="Execute">
 +
    <startupnotify>
 +
      <enabled>yes</enabled>
 +
      <name>Terminal</name>
 +
    </startupnotify>
 +
    <execute>gnome-terminal</execute>
 +
  </action>
 +
</keybind>
 +
 +
<keybind key="W-t">
 +
  <action name="Execute"><execute>xterm</execute></action>
 +
</keybind>
 +
</pre></code>
 +
 +
===== DirectionalFocusNorth =====
 +
Cycles focus to the window north of the currently focused window.
 +
{|
 +
!Option
 +
!Default Value
 +
!Description
 +
|-
 +
|<execute>
 +
|style="text-align:center"|yes
 +
|A boolean (yes/no) which specifies if a dialog is shown on screen with the name and icon of the window which will be focused.
 +
|}
 +
 +
Example:
 +
<code><pre>
 +
<keybind key="W-Up">
 +
  <action name="DirectionalFocusNorth"/>
 +
</keybind>
 +
</pre></code>
 +
 +
===== DirectionalFocusSouth =====
 +
Cycles focus to the window south of the currently focused window.
 +
{|
 +
!Option
 +
!Default Value
 +
!Description
 +
|-
 +
|<execute>
 +
|style="text-align:center"|yes
 +
|A boolean (yes/no) which specifies if a dialog is shown on screen with the name and icon of the window which will be focused.
 +
|}
 +
 +
Example:
 +
<code><pre>
 +
<keybind key="W-Down">
 +
  <action name="DirectionalFocusSouth"/>
 +
</keybind>
 +
</pre></code>
 +
 +
===== DirectionalFocusEast =====
 +
Cycles focus to the window east of the currently focused window.
 +
{|
 +
!Option
 +
!Default Value
 +
!Description
 +
|-
 +
|<execute>
 +
|style="text-align:center"|yes
 +
|A boolean (yes/no) which specifies if a dialog is shown on screen with the name and icon of the window which will be focused.
 +
|}
 +
 +
Example:
 +
<code><pre>
 +
<keybind key="W-Right">
 +
  <action name="DirectionalFocusEast"/>
 +
</keybind>
 +
</pre></code>
 +
 +
===== DirectionalFocusWest =====
 +
Cycles focus to the window west of the currently focused window.
 +
{|
 +
!Option
 +
!Default Value
 +
!Description
 +
|-
 +
|<execute>
 +
|style="text-align:center"|yes
 +
|A boolean (yes/no) which specifies if a dialog is shown on screen with the name and icon of the window which will be focused.
 +
|}
 +
 +
Example:
 +
<code><pre>
 +
<keybind key="W-Left">
 +
  <action name="DirectionalFocusWest"/>
 +
</keybind>
 +
</pre></code>

Revision as of 18:52, 4 June 2007

Contents

Global actions

These actions are not used to manipulate windows. As such, they work whether a window is currently focused or not.

Execute

Runs a program

Option Default Value Description
<execute> "" A string which is the command to be executed, along with any arguments to be passed to it. The "~" tilde character will be expanded to your home directory, but no other shell expansions or scripting syntax may be used in the command.
<startupnotify><enabled> no A boolean (yes/no) which says if the startup notification protocol should be used to notify other programs that an application is launching.

Example:

<keybind key="W-space">
  <action name="Execute">
    <startupnotify>
      <enabled>yes</enabled>
      <name>Terminal</name>
    </startupnotify>
    <execute>gnome-terminal</execute>
  </action>
</keybind>

<keybind key="W-t">
  <action name="Execute"><execute>xterm</execute></action>
</keybind>
DirectionalFocusNorth

Cycles focus to the window north of the currently focused window.

Option Default Value Description
<execute> yes A boolean (yes/no) which specifies if a dialog is shown on screen with the name and icon of the window which will be focused.

Example:

<keybind key="W-Up">
  <action name="DirectionalFocusNorth"/>
</keybind>
DirectionalFocusSouth

Cycles focus to the window south of the currently focused window.

Option Default Value Description
<execute> yes A boolean (yes/no) which specifies if a dialog is shown on screen with the name and icon of the window which will be focused.

Example:

<keybind key="W-Down">
  <action name="DirectionalFocusSouth"/>
</keybind>
DirectionalFocusEast

Cycles focus to the window east of the currently focused window.

Option Default Value Description
<execute> yes A boolean (yes/no) which specifies if a dialog is shown on screen with the name and icon of the window which will be focused.

Example:

<keybind key="W-Right">
  <action name="DirectionalFocusEast"/>
</keybind>
DirectionalFocusWest

Cycles focus to the window west of the currently focused window.

Option Default Value Description
<execute> yes A boolean (yes/no) which specifies if a dialog is shown on screen with the name and icon of the window which will be focused.

Example:

<keybind key="W-Left">
  <action name="DirectionalFocusWest"/>
</keybind>
Personal tools