---
name: "bspwm"
section: "1"
platform: "linux"
package: "bspwm"
version: "0.9.12-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/bspwm"
---

# bspwm(1)

Binary space partitioning window manager

## NAME

bspwm - Binary space partitioning window manager

## SYNOPSIS

**bspwm** \[**-h**\|**-v**\|**-c** *CONFIG\_PATH*\]

**bspc --print-socket-path**

**bspc** *DOMAIN* \[*SELECTOR*\] *COMMANDS*

**bspc** *COMMAND* \[*OPTIONS*\] \[*ARGUMENTS*\]

## DESCRIPTION

**bspwm** is a tiling window manager that represents windows as the leaves of a full binary tree.

It is controlled and configured via **bspc**.

## OPTIONS

- **-h**

  Print the synopsis and exit.

- **-v**

  Print the version and exit.

- **-c** *CONFIG\_PATH*

  Use the given configuration file.

- **--print-socket-path**

  Print the **bspwm** socket path and exit.

## COMMON DEFINITIONS

```
DIR         := north | west | south | east
CYCLE_DIR   := next | prev
```

## SELECTORS

Selectors are used to select a target node, desktop, or monitor. A selector can either describe the target relatively or name it globally.

Selectors consist of an optional reference, a descriptor and any number of non-conflicting modifiers as follows:

```
[REFERENCE#]DESCRIPTOR(.MODIFIER)*
```

The relative targets are computed in relation to the given reference (the default reference value is **focused**).

An exclamation mark can be prepended to any modifier in order to reverse its meaning.

The following characters cannot be used in monitor or desktop names: **#**, **:**, **.**.

The special selector **%\<name\>** can be used to select a monitor or a desktop with an invalid name.

### Node

Select a node.

```
NODE_SEL := [NODE_SEL#](DIR|CYCLE_DIR|PATH|any|first_ancestor|last|newest|
                        older|newer|focused|pointed|biggest|smallest|
                        <node_id>)[.[!]focused][.[!]active][.[!]automatic][.[!]local]
                                  [.[!]leaf][.[!]window][.[!]STATE][.[!]FLAG][.[!]LAYER][.[!]SPLIT_TYPE]
                                  [.[!]same_class][.[!]descendant_of][.[!]ancestor_of]
STATE := tiled|pseudo_tiled|floating|fullscreen
FLAG := hidden|sticky|private|locked|marked|urgent
LAYER := below|normal|above
SPLIT_TYPE := horizontal|vertical
PATH := @[DESKTOP_SEL:][[/]JUMP](/JUMP)*
JUMP := first|1|second|2|brother|parent|DIR
```

**Descriptors**

*DIR*

Selects the window in the given (spacial) direction relative to the reference node.

*CYCLE\_DIR*

Selects the node in the given (cyclic) direction relative to the reference node within a depth-first in-order traversal of the tree.

*PATH*

Selects the node at the given path.

any

Selects the first node that matches the given selectors.

first\_ancestor

Selects the first ancestor of the reference node that matches the given selectors.

last

Selects the previously focused node relative to the reference node.

newest

Selects the newest node in the history of the focused node.

older

Selects the node older than the reference node in the history.

newer

Selects the node newer than the reference node in the history.

focused

Selects the currently focused node.

pointed

Selects the leaf under the pointer.

biggest

Selects the biggest leaf.

smallest

Selects the smallest leaf.

\<node\_id\>

Selects the node with the given ID.

**Path Jumps**

The initial node is the focused node (or the root if the path starts with */*) of the reference desktop (or the selected desktop if the path has a *DESKTOP\_SEL* prefix).

1\|first

Jumps to the first child.

2\|second

Jumps to the second child.

brother

Jumps to the brother node.

parent

Jumps to the parent node.

*DIR*

Jumps to the node holding the edge in the given direction.

**Modifiers**

\[!\]focused

Only consider the focused node.

\[!\]active

Only consider nodes that are the focused node of their desktop.

\[!\]automatic

Only consider nodes in automatic insertion mode. See also **--presel-dir** under **Node** in the **DOMAINS** section below.

\[!\]local

Only consider nodes in the reference desktop.

\[!\]leaf

Only consider leaf nodes.

\[!\]window

Only consider nodes that hold a window.

\[!\](tiled\|pseudo\_tiled\|floating\|fullscreen)

Only consider windows in the given state.

\[!\]same\_class

Only consider windows that have the same class as the reference window.

\[!\]descendant\_of

Only consider nodes that are descendants of the reference node.

\[!\]ancestor\_of

Only consider nodes that are ancestors of the reference node.

\[!\](hidden\|sticky\|private\|locked\|marked\|urgent)

Only consider windows that have the given flag set.

\[!\](below\|normal\|above)

Only consider windows in the given layer.

\[!\](horizontal\|vertical)

Only consider nodes with the given split type.

### Desktop

Select a desktop.

```
DESKTOP_SEL := [DESKTOP_SEL#](CYCLE_DIR|any|last|newest|older|newer|
                              [MONITOR_SEL:](focused|^<n>)|
                              <desktop_id>|<desktop_name>)[.[!]focused][.[!]active]
                                                          [.[!]occupied][.[!]urgent][.[!]local]
                                                          [.[!]LAYOUT][.[!]user_LAYOUT]
LAYOUT := tiled|monocle
```

**Descriptors**

*CYCLE\_DIR*

Selects the desktop in the given direction relative to the reference desktop.

any

Selects the first desktop that matches the given selectors.

last

Selects the previously focused desktop relative to the reference desktop.

newest

Selects the newest desktop in the history of the focused desktops.

older

Selects the desktop older than the reference desktop in the history.

newer

Selects the desktop newer than the reference desktop in the history.

focused

Selects the currently focused desktop.

^\<n\>

Selects the nth desktop. If **MONITOR\_SEL** is given, selects the nth desktop on the selected monitor.

\<desktop\_id\>

Selects the desktop with the given ID.

\<desktop\_name\>

Selects the desktop with the given name.

**Modifiers**

\[!\]focused

Only consider the focused desktop.

\[!\]active

Only consider desktops that are the focused desktop of their monitor.

\[!\]occupied

Only consider occupied desktops.

\[!\]urgent

Only consider urgent desktops.

\[!\]local

Only consider desktops inside the reference monitor.

\[!\](tiled\|monocle)

Only consider desktops with the given layout.

\[!\](user\_tiled\|user\_monocle)

Only consider desktops which have the given layout as userLayout.

### Monitor

Select a monitor.

```
MONITOR_SEL := [MONITOR_SEL#](DIR|CYCLE_DIR|any|last|newest|older|newer|
                              focused|pointed|primary|^<n>|
                              <monitor_id>|<monitor_name>)[.[!]focused][.[!]occupied]
```

**Descriptors**

*DIR*

Selects the monitor in the given (spacial) direction relative to the reference monitor.

*CYCLE\_DIR*

Selects the monitor in the given (cyclic) direction relative to the reference monitor.

any

Selects the first monitor that matches the given selectors.

last

Selects the previously focused monitor relative to the reference monitor.

newest

Selects the newest monitor in the history of the focused monitors.

older

Selects the monitor older than the reference monitor in the history.

newer

Selects the monitor newer than the reference monitor in the history.

focused

Selects the currently focused monitor.

pointed

Selects the monitor under the pointer.

primary

Selects the primary monitor.

^\<n\>

Selects the nth monitor.

\<monitor\_id\>

Selects the monitor with the given ID.

\<monitor\_name\>

Selects the monitor with the given name.

**Modifiers**

\[!\]focused

Only consider the focused monitor.

\[!\]occupied

Only consider monitors where the focused desktop is occupied.

## WINDOW STATES

tiled

Its size and position are determined by the window tree.

pseudo\_tiled

A tiled window that automatically shrinks but doesn’t stretch beyond its floating size.

floating

Can be moved/resized freely. Although it doesn’t use any tiling space, it is still part of the window tree.

fullscreen

Fills its monitor rectangle and has no borders.

## NODE FLAGS

hidden

Is hidden and doesn’t occupy any tiling space.

sticky

Stays in the focused desktop of its monitor.

private

Tries to keep the same tiling position/size.

locked

Ignores the **node --close** message.

marked

Is marked (useful for deferred actions). A marked node becomes unmarked after being sent on a preselected node.

urgent

Has its urgency hint set. This flag is set externally.

## STACKING LAYERS

There’s three stacking layers: BELOW, NORMAL and ABOVE.

In each layer, the windows are orderered as follows: tiled & pseudo-tiled \< floating \< fullscreen.

## RECEPTACLES

A leaf node that doesn’t hold any window is called a receptacle. When a node is inserted on a receptacle in automatic mode, it will replace the receptacle. A receptacle can be inserted on a node, preselected and killed. Receptacles can therefore be used to build a tree whose leaves are receptacles. Using the appropriate rules, one can then send windows on the leaves of this tree. This feature is used in *examples/receptacles* to store and recreate layouts.

## DOMAINS

### Node

**General Syntax**

node \[*NODE\_SEL*\] *COMMANDS*

If *NODE\_SEL* is omitted, **focused** is assumed.

**Commands**

**-f**, **--focus** \[*NODE\_SEL*\]

Focus the selected or given node.

**-a**, **--activate** \[*NODE\_SEL*\]

Activate the selected or given node.

**-d**, **--to-desktop** *DESKTOP\_SEL* \[**--follow**\]

Send the selected node to the given desktop. If **--follow** is passed, the focused node will stay focused.

**-m**, **--to-monitor** *MONITOR\_SEL* \[**--follow**\]

Send the selected node to the given monitor. If **--follow** is passed, the focused node will stay focused.

**-n**, **--to-node** *NODE\_SEL* \[**--follow**\]

Send the selected node on the given node. If **--follow** is passed, the focused node will stay focused.

**-s**, **--swap** *NODE\_SEL* \[**--follow**\]

Swap the selected node with the given node. If **--follow** is passed, the focused node will stay focused.

**-p**, **--presel-dir** \[~\]*DIR*\|cancel

Preselect the splitting area of the selected node (or cancel the preselection). If **~** is prepended to *DIR* and the current preselection direction matches *DIR*, then the argument is interpreted as **cancel**. A node with a preselected area is said to be in "manual insertion mode".

**-o**, **--presel-ratio** *RATIO*

Set the splitting ratio of the preselection area.

**-v**, **--move** *dx* *dy*

Move the selected window by *dx* pixels horizontally and *dy* pixels vertically.

**-z**, **--resize** top\|left\|bottom\|right\|top\_left\|top\_right\|bottom\_right\|bottom\_left *dx* *dy*

Resize the selected window by moving the given handle by *dx* pixels horizontally and *dy* pixels vertically.

**-y**, **--type** *CYCLE\_DIR*\|horizontal\|vertical

Set or cycle the splitting type of the selected node.

**-r**, **--ratio** *RATIO*\|(+\|-)(*PIXELS*\|*FRACTION*)

Set the splitting ratio of the selected node (0 \< *RATIO* \< 1).

**-R**, **--rotate** *90\|270\|180*

Rotate the tree rooted at the selected node.

**-F**, **--flip** *horizontal\|vertical*

Flip the tree rooted at selected node.

**-E**, **--equalize**

Reset the split ratios of the tree rooted at the selected node to their default value.

**-B**, **--balance**

Adjust the split ratios of the tree rooted at the selected node so that all windows occupy the same area.

**-C**, **--circulate** forward\|backward

Circulate the windows of the tree rooted at the selected node.

**-t**, **--state** ~\|\[~\]*STATE*

Set the state of the selected window. If **~** is present and the current state matches *STATE*, then the argument is interpreted as its last state. If the argument is just **~** with *STATE* omitted, then the state of the selected window is set to its last state.

**-g**, **--flag** hidden\|sticky\|private\|locked\|marked\[=on\|off\]

Set or toggle the given flag for the selected node.

**-l**, **--layer** below\|normal\|above

Set the stacking layer of the selected window.

**-i**, **--insert-receptacle**

Insert a receptacle node at the selected node.

**-c**, **--close**

Close the windows rooted at the selected node.

**-k**, **--kill**

Kill the windows rooted at the selected node.

### Desktop

**General Syntax**

desktop \[*DESKTOP\_SEL*\] *COMMANDS*

If *DESKTOP\_SEL* is omitted, **focused** is assumed.

**COMMANDS**

**-f**, **--focus** \[*DESKTOP\_SEL*\]

Focus the selected or given desktop.

**-a**, **--activate** \[*DESKTOP\_SEL*\]

Activate the selected or given desktop.

**-m**, **--to-monitor** *MONITOR\_SEL* \[**--follow**\]

Send the selected desktop to the given monitor. If **--follow** is passed, the focused desktop will stay focused.

**-s**, **--swap** *DESKTOP\_SEL* \[**--follow**\]

Swap the selected desktop with the given desktop. If **--follow** is passed, the focused desktop will stay focused.

**-l**, **--layout** *CYCLE\_DIR*\|monocle\|tiled

Set or cycle the layout of the selected desktop.

**-n**, **--rename** \<new\_name\>

Rename the selected desktop.

**-b**, **--bubble** *CYCLE\_DIR*

Bubble the selected desktop in the given direction.

**-r**, **--remove**

Remove the selected desktop.

### Monitor

**General Syntax**

monitor \[*MONITOR\_SEL*\] *COMMANDS*

If *MONITOR\_SEL* is omitted, **focused** is assumed.

**Commands**

**-f**, **--focus** \[*MONITOR\_SEL*\]

Focus the selected or given monitor.

**-s**, **--swap** *MONITOR\_SEL*

Swap the selected monitor with the given monitor.

**-a**, **--add-desktops** \<name\>...

Create desktops with the given names in the selected monitor.

**-o**, **--reorder-desktops** \<name\>...

Reorder the desktops of the selected monitor to match the given order.

**-d**, **--reset-desktops** \<name\>...

Rename, add or remove desktops depending on whether the number of given names is equal, superior or inferior to the number of existing desktops.

**-g**, **--rectangle** WxH+X+Y

Set the rectangle of the selected monitor.

**-n**, **--rename** \<new\_name\>

Rename the selected monitor.

**-r**, **--remove**

Remove the selected monitor.

### Query

**General Syntax**

query *COMMANDS* \[*OPTIONS*\]

**Commands**

The optional selectors are references.

**-N**, **--nodes** \[*NODE\_SEL*\]

List the IDs of the matching nodes.

**-D**, **--desktops** \[*DESKTOP\_SEL*\]

List the IDs (or names) of the matching desktops.

**-M**, **--monitors** \[*MONITOR\_SEL*\]

List the IDs (or names) of the matching monitors.

**-T**, **--tree**

Print a JSON representation of the matching item.

**Options**

**-m**,**--monitor** \[*MONITOR\_SEL*\|*MONITOR\_MODIFIERS*\], **-d**,**--desktop** \[*DESKTOP\_SEL*\|*DESKTOP\_MODIFIERS*\], **-n**,**--node** \[*NODE\_SEL*\|*NODE\_MODIFIERS*\]

Constrain matches to the selected monitors, desktops or nodes.

**--names**

Print names instead of IDs. Can only be used with *-M* and *-D*.

### Wm

**General Syntax**

wm *COMMANDS*

**Commands**

**-d**, **--dump-state**

Dump the current world state on standard output.

**-l**, **--load-state** \<file\_path\>

Load a world state from the given file. The path must be absolute.

**-a**, **--add-monitor** \<name\> WxH+X+Y

Add a monitor for the given name and rectangle.

**-O**, **--reorder-monitors** \<name\>...

Reorder the list of monitors to match the given order.

**-o**, **--adopt-orphans**

Manage all the unmanaged windows remaining from a previous session.

**-h**, **--record-history** on\|off

Enable or disable the recording of node focus history.

**-g**, **--get-status**

Print the current status information.

**-r**, **--restart**

Restart the window manager

### Rule

**General Syntax**

rule *COMMANDS*

**Commands**

**-a**, **--add** (\<class\_name\>\|\*)\[:(\<instance\_name\>\|\*)\[:(\<name\>\|\*)\]\] \[**-o**\|**--one-shot**\] \[monitor=MONITOR\_SEL\|desktop=DESKTOP\_SEL\|node=NODE\_SEL\] \[state=STATE\] \[layer=LAYER\] \[honor\_size\_hints=(true\|false\|tiled\|floating)\] \[split\_dir=DIR\] \[split\_ratio=RATIO\] \[(hidden\|sticky\|private\|locked\|marked\|center\|follow\|manage\|focus\|border)=(on\|off)\] \[rectangle=WxH+X+Y\]

Create a new rule. Colons in the *instance\_name*, *class\_name*, or *name* fields can be escaped with a backslash.

**-r**, **--remove** ^\<n\>\|head\|tail\|(\<class\_name\>\|\*)\[:(\<instance\_name\>\|\*)\[:(\<name\>\|\*)\]\]...

Remove the given rules.

**-l**, **--list**

List the rules.

### Config

**General Syntax**

config \[-m *MONITOR\_SEL*\|-d *DESKTOP\_SEL*\|-n *NODE\_SEL*\] \<setting\> \[\<value\>\]

Get or set the value of \<setting\>.

### Subscribe

**General Syntax**

subscribe \[*OPTIONS*\] (all\|report\|monitor\|desktop\|node\|...)\*

Continuously print events. See the **EVENTS** section for the description of each event.

**Options**

**-f**, **--fifo**

Print a path to a FIFO from which events can be read and return.

**-c**, **--count** *COUNT*

Stop the corresponding **bspc** process after having received *COUNT* events.

### Quit

**General Syntax**

quit \[\<status\>\]

Quit with an optional exit status.

## EXIT CODES

If the server can’t handle a message, **bspc** will return with a non-zero exit code.

## SETTINGS

Colors are in the form *#RRGGBB*, booleans are *true*, *on*, *false* or *off*.

All the boolean settings are *false* by default unless stated otherwise.

### Global Settings

*normal\_border\_color*

Color of the border of an unfocused window.

*active\_border\_color*

Color of the border of a focused window of an unfocused monitor.

*focused\_border\_color*

Color of the border of a focused window of a focused monitor.

*presel\_feedback\_color*

Color of the **node --presel-{dir,ratio}** message feedback area.

*split\_ratio*

Default split ratio.

*status\_prefix*

Prefix prepended to each of the status lines.

*external\_rules\_command*

Absolute path to the command used to retrieve rule consequences. The command will receive the following arguments: window ID, class name, instance name, and intermediate consequences. The output of that command must have the following format: **key1=value1 key2=value2 ...** (the valid key/value pairs are given in the description of the *rule* command).

*automatic\_scheme*

The insertion scheme used when the insertion point is in automatic mode. Accept the following values: **longest\_side**, **alternate**, **spiral**.

*initial\_polarity*

On which child should a new window be attached when adding a window on a single window tree in automatic mode. Accept the following values: **first\_child**, **second\_child**.

*directional\_focus\_tightness*

The tightness of the algorithm used to decide whether a window is on the *DIR* side of another window. Accept the following values: **high**, **low**.

*removal\_adjustment*

Adjust the brother when unlinking a node from the tree in accordance with the automatic insertion scheme.

*presel\_feedback*

Draw the preselection feedback area. Defaults to *true*.

*borderless\_monocle*

Remove borders of tiled windows for the **monocle** desktop layout.

*gapless\_monocle*

Remove gaps of tiled windows for the **monocle** desktop layout.

*top\_monocle\_padding*, *right\_monocle\_padding*, *bottom\_monocle\_padding*, *left\_monocle\_padding*

Padding space added at the sides of the screen for the **monocle** desktop layout.

*single\_monocle*

Set the desktop layout to **monocle** if there’s only one tiled window in the tree.

*borderless\_singleton*

Remove borders of the only window on the only monitor regardless its layout.

*pointer\_motion\_interval*

The minimum interval, in milliseconds, between two motion notify events.

*pointer\_modifier*

Keyboard modifier used for moving or resizing windows. Accept the following values: **shift**, **control**, **lock**, **mod1**, **mod2**, **mod3**, **mod4**, **mod5**.

*pointer\_action1*, *pointer\_action2*, *pointer\_action3*

Action performed when pressing *pointer\_modifier* + *button\<n\>*. Accept the following values: **move**, **resize\_side**, **resize\_corner**, **focus**, **none**.

*click\_to\_focus*

Button used for focusing a window (or a monitor). The possible values are: **button1**, **button2**, **button3**, **any**, **none**. Defaults to **button1**.

*swallow\_first\_click*

Don’t replay the click that makes a window focused if *click\_to\_focus* isn’t **none**.

*focus\_follows\_pointer*

Focus the window under the pointer.

*pointer\_follows\_focus*

When focusing a window, put the pointer at its center.

*pointer\_follows\_monitor*

When focusing a monitor, put the pointer at its center.

*mapping\_events\_count*

Handle the next **mapping\_events\_count** mapping notify events. A negative value implies that every event needs to be handled.

*ignore\_ewmh\_focus*

Ignore EWMH focus requests coming from applications.

*ignore\_ewmh\_fullscreen*

Block the fullscreen state transitions that originate from an EWMH request. The possible values are: **none**, **all**, or a comma separated list of the following values: **enter**, **exit**.

*ignore\_ewmh\_struts*

Ignore strut hinting from clients requesting to reserve space (i.e. task bars).

*center\_pseudo\_tiled*

Center pseudo tiled windows into their tiling rectangles. Defaults to *true*.

*remove\_disabled\_monitors*

Consider disabled monitors as disconnected.

*remove\_unplugged\_monitors*

Remove unplugged monitors.

*merge\_overlapping\_monitors*

Merge overlapping monitors (the bigger remains).

### Monitor and Desktop Settings

*top\_padding*, *right\_padding*, *bottom\_padding*, *left\_padding*

Padding space added at the sides of the monitor or desktop.

### Desktop Settings

*window\_gap*

Size of the gap that separates windows.

### Node Settings

*border\_width*

Window border width.

*honor\_size\_hints*

If *true*, apply ICCCM window size hints to all windows. If *floating*, only apply them to floating and pseudo tiled windows. If *tiled*, only apply them to tiled windows. If *false*, don’t apply them. Defaults to *false*.

## POINTER BINDINGS

*click\_to\_focus*

Focus the window (or the monitor) under the pointer if the value isn’t **none**.

*pointer\_modifier* + *button1*

Move the window under the pointer.

*pointer\_modifier* + *button2*

Resize the window under the pointer by dragging the nearest side.

*pointer\_modifier* + *button3*

Resize the window under the pointer by dragging the nearest corner.

The behavior of *pointer\_modifier* + *button\<n\>* can be modified through the *pointer\_action\<n\>* setting.

## EVENTS

*report*

See the next section for the description of the format.

*monitor\_add \<monitor\_id\> \<monitor\_name\> \<monitor\_geometry\>*

A monitor is added.

*monitor\_rename \<monitor\_id\> \<old\_name\> \<new\_name\>*

A monitor is renamed.

*monitor\_remove \<monitor\_id\>*

A monitor is removed.

*monitor\_swap \<src\_monitor\_id\> \<dst\_monitor\_id\>*

A monitor is swapped.

*monitor\_focus \<monitor\_id\>*

A monitor is focused.

*monitor\_geometry \<monitor\_id\> \<monitor\_geometry\>*

The geometry of a monitor changed.

*desktop\_add \<monitor\_id\> \<desktop\_id\> \<desktop\_name\>*

A desktop is added.

*desktop\_rename \<monitor\_id\> \<desktop\_id\> \<old\_name\> \<new\_name\>*

A desktop is renamed.

*desktop\_remove \<monitor\_id\> \<desktop\_id\>*

A desktop is removed.

*desktop\_swap \<src\_monitor\_id\> \<src\_desktop\_id\> \<dst\_monitor\_id\> \<dst\_desktop\_id\>*

A desktop is swapped.

*desktop\_transfer \<src\_monitor\_id\> \<src\_desktop\_id\> \<dst\_monitor\_id\>*

A desktop is transferred.

*desktop\_focus \<monitor\_id\> \<desktop\_id\>*

A desktop is focused.

*desktop\_activate \<monitor\_id\> \<desktop\_id\>*

A desktop is activated.

*desktop\_layout \<monitor\_id\> \<desktop\_id\> tiled\|monocle*

The layout of a desktop changed.

*node\_add \<monitor\_id\> \<desktop\_id\> \<ip\_id\> \<node\_id\>*

A node is added.

*node\_remove \<monitor\_id\> \<desktop\_id\> \<node\_id\>*

A node is removed.

*node\_swap \<src\_monitor\_id\> \<src\_desktop\_id\> \<src\_node\_id\> \<dst\_monitor\_id\> \<dst\_desktop\_id\> \<dst\_node\_id\>*

A node is swapped.

*node\_transfer \<src\_monitor\_id\> \<src\_desktop\_id\> \<src\_node\_id\> \<dst\_monitor\_id\> \<dst\_desktop\_id\> \<dst\_node\_id\>*

A node is transferred.

*node\_focus \<monitor\_id\> \<desktop\_id\> \<node\_id\>*

A node is focused.

*node\_activate \<monitor\_id\> \<desktop\_id\> \<node\_id\>*

A node is activated.

*node\_presel \<monitor\_id\> \<desktop\_id\> \<node\_id\> (dir DIR\|ratio RATIO\|cancel)*

A node is preselected.

*node\_stack \<node\_id\_1\> below\|above \<node\_id\_2\>*

A node is stacked below or above another node.

*node\_geometry \<monitor\_id\> \<desktop\_id\> \<node\_id\> \<node\_geometry\>*

The geometry of a window changed.

*node\_state \<monitor\_id\> \<desktop\_id\> \<node\_id\> tiled\|pseudo\_tiled\|floating\|fullscreen on\|off*

The state of a window changed.

*node\_flag \<monitor\_id\> \<desktop\_id\> \<node\_id\> hidden\|sticky\|private\|locked\|marked\|urgent on\|off*

One of the flags of a node changed.

*node\_layer \<monitor\_id\> \<desktop\_id\> \<node\_id\> below\|normal\|above*

The layer of a window changed.

*pointer\_action \<monitor\_id\> \<desktop\_id\> \<node\_id\> move\|resize\_corner\|resize\_side begin\|end*

A pointer action occurred.

Please note that **bspwm** initializes monitors before it reads messages on its socket, therefore the initial monitor events can’t be received.

## REPORT FORMAT

Each report event message is composed of items separated by colons.

Each item has the form *\<type\>\<value\>* where *\<type\>* is the first character of the item.

*M\<monitor\_name\>*

Focused monitor.

*m\<monitor\_name\>*

Unfocused monitor.

*O\<desktop\_name\>*

Occupied focused desktop.

*o\<desktop\_name\>*

Occupied unfocused desktop.

*F\<desktop\_name\>*

Free focused desktop.

*f\<desktop\_name\>*

Free unfocused desktop.

*U\<desktop\_name\>*

Urgent focused desktop.

*u\<desktop\_name\>*

Urgent unfocused desktop.

*L(T\|M)*

Layout of the focused desktop of a monitor.

*T(T\|P\|F\|=\|@)*

State of the focused node of a focused desktop.

*G(S?P?L?M?)*

Active flags of the focused node of a focused desktop.

## ENVIRONMENT VARIABLES

*BSPWM\_SOCKET*

The path of the socket used for the communication between **bspc** and **bspwm**. If it isn’t defined, then the following path is used: */tmp/bspwm\<host\_name\>\_\<display\_number\>\_\<screen\_number\>-socket*.

## CONTRIBUTORS

• Steven Allen \<steven at stebalien.com\>

• Thomas Adam \<thomas at xteddy.org\>

• Ivan Kanakarakis \<ivan.kanak at gmail.com\>

## AUTHOR

Bastien Dejean \<nihilhill at gmail.com\>
