XFwm commands

This large section describes all xfwm commands that may be used in menus and function definitions. For menus generally only the "Exec", "PopUp" and "Nop" commands are used.

Table 13-1. XFwm commands

CommandDescriptionExample
ArrangeIcons [<desk1> <desk2>]Arange icons on the current desk or on <desk1> to <desk2> ArrangeIcons 0 9
BeepProduces a beepBeep
CloseClose a windowClose
Current [conditions] <command>The Current, Next and Prev commands take a condition between square brackets as first argument and a command as second argument. The condition limits the action to certain window states. Possible conditions are described in the paragraph after this table.Current [!Iconic] Focus
DeleteSends a message to a window asking that it removes itselfDelete

Desk <step>

Desk 0 <desk>

Change to another desk/workspace. You can either specify a step (1 means to next workspace, -1 means to previous workspace) or when the first argument is 0, you can specify the number of the worlspace to go to (starting from 0).

Desk -1

Desk 0 3

DestroySend destroy signal to a windowDestroy
Echo <s>Prints string to stderrEcho "Done"
Exec <c>Executes a commandExec xedit
FlipFocusToggle focus between last two active windowsFlipFocus
FocusGives focus to a windowFocus
Function <fn>Executes a function. Mostly used in mouse and key bindings. Mouse 1 T A Function Move-or-Raise
Iconify(De)Iconifies a windowIconify
IconifyAllIconifies all windows in a workspaceIconifyAll
KillModule <m>Kills a moduleKillModule xfpager
LowerLowers a windowLower
Maximize [<p1> <p2>]Maximizes a window. You may specify a horizontal percentage p1 and a vertical percentage p2.Maximize 0 100
Menu <m> <dbl-click-action>Displays menu or triggers action if user performed a double click Menu "Utilities" Close
Module <m>Executes a moduleModule xfce
Move [<x> <y>]Moves a windowMove
Next [conditions] <command>The Current, Next and Prev commands take a condition between square brackets as first argument and a command as second argument. The condition limits the action to certain window states. Possible conditions are described in the paragraph after this table.Next [!Iconic] Focus
NoneDoes nothingNone
NopNo operation. Creates a separator in a menuAddToMenu "user_menu" "" Nop
PopUpPops up a menuAddToMenu "user_menu" "My Menu" PopUp "my_menu"
Prev [conditions] <command>The Current, Next and Prev commands take a condition between square brackets as first argument and a command as second argument. The condition limits the action to certain window states. Possible conditions are described in the paragraph after this table.Prev [!Iconic] Focus
QuitQuits xfwm and consequently exits the X session, closing all running applicationsQuit
RaiseRaises a windowRaise
RaiseLowerRaises or Lowers a window dependng on current stateRaiseLower
Read <f>Reads a configuration fileRead ~/.xfce/myssettings
RecaptureRecapture all windowsRecapture
RefreshRefresh the screenRefresh
RefreshWindowRefresh current windowRefreshWindow
Resize [<x <y>]Resizes a windowResize
RestartRestart xfwmRestart
Shade(Un)Shades a windowShade
ShowMeMouseShows the mouse by animating a circle around the pointerShowMeMouse
StickMake a window stickyStick
SwitchSwitch focus to next windowSwitch
Wait <name>Waits until window <name> appearsWait xterm
WarpToWindow <p1> <p2>Warps mouse pointer to window. <p1> and <p2> are horizontal and vertical percentage of the screen.WarpToWindow 50 50
WindowId <n> <cmd>Perform an action on window with ID <n> as shown in the windowlist. Used in WindowListFunc, which is executed when an entry in the windowlist is pressed.WindowId $0 Focus
WindowListGives a list of all windows on the screenWindowList

WindowsDesk <step>

WindowsDesk 0 <desk>

Send current window to another desk/workspace. You can either specify a step (1 means to next workspace, -1 means to previous workspace) or when the first argument is 0, you can specify the number of the worlspace to go to (starting from 0).

WindowsDesk -1

WindowsDesk 0 3

The window circulation functions Next, Prev and Current take an argument between square brackets to customize the behaviour. Conditions may be combined separated by spaces.

 Next [ !Iconic CurrentDesk] Iconify

Recognized conditions are :