]> git.lizzy.rs Git - bspwm.git/blob - doc/bspwm.1
e798b23921d7176e30e08e761078f37ce23384aa
[bspwm.git] / doc / bspwm.1
1 '\" t
2 .\"     Title: bspwm
3 .\"    Author: [see the "Author" section]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\"      Date: 12/24/2020
6 .\"    Manual: Bspwm Manual
7 .\"    Source: Bspwm 0.9.10-18-g87822b5
8 .\"  Language: English
9 .\"
10 .TH "BSPWM" "1" "12/24/2020" "Bspwm 0\&.9\&.10\-18\-g87822b5" "Bspwm Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 bspwm \- Binary space partitioning window manager
32 .SH "SYNOPSIS"
33 .sp
34 \fBbspwm\fR [\fB\-h\fR|\fB\-v\fR|\fB\-c\fR \fICONFIG_PATH\fR]
35 .sp
36 \fBbspc\fR \fIDOMAIN\fR [\fISELECTOR\fR] \fICOMMANDS\fR
37 .sp
38 \fBbspc\fR \fICOMMAND\fR [\fIOPTIONS\fR] [\fIARGUMENTS\fR]
39 .SH "DESCRIPTION"
40 .sp
41 \fBbspwm\fR is a tiling window manager that represents windows as the leaves of a full binary tree\&.
42 .sp
43 It is controlled and configured via \fBbspc\fR\&.
44 .SH "OPTIONS"
45 .PP
46 \fB\-h\fR
47 .RS 4
48 Print the synopsis and exit\&.
49 .RE
50 .PP
51 \fB\-v\fR
52 .RS 4
53 Print the version and exit\&.
54 .RE
55 .PP
56 \fB\-c\fR \fICONFIG_PATH\fR
57 .RS 4
58 Use the given configuration file\&.
59 .RE
60 .SH "COMMON DEFINITIONS"
61 .sp
62 .if n \{\
63 .RS 4
64 .\}
65 .nf
66 DIR         := north | west | south | east
67 CYCLE_DIR   := next | prev
68 .fi
69 .if n \{\
70 .RE
71 .\}
72 .SH "SELECTORS"
73 .sp
74 Selectors are used to select a target node, desktop, or monitor\&. A selector can either describe the target relatively or name it globally\&.
75 .sp
76 Selectors consist of an optional reference, a descriptor and any number of non\-conflicting modifiers as follows:
77 .sp
78 .if n \{\
79 .RS 4
80 .\}
81 .nf
82 [REFERENCE#]DESCRIPTOR(\&.MODIFIER)*
83 .fi
84 .if n \{\
85 .RE
86 .\}
87 .sp
88 The relative targets are computed in relation to the given reference (the default reference value is \fBfocused\fR)\&.
89 .sp
90 An exclamation mark can be prepended to any modifier in order to reverse its meaning\&.
91 .sp
92 The following characters cannot be used in monitor or desktop names: \fB#\fR, \fB:\fR, \fB\&.\fR\&.
93 .sp
94 The special selector \fB%<name>\fR can be used to select a monitor or a desktop with an invalid name\&.
95 .SS "Node"
96 .sp
97 Select a node\&.
98 .sp
99 .if n \{\
100 .RS 4
101 .\}
102 .nf
103 NODE_SEL := [NODE_SEL#](DIR|CYCLE_DIR|PATH|any|first_ancestor|last|newest|
104                         older|newer|focused|pointed|biggest|smallest|
105                         <node_id>)[\&.[!]focused][\&.[!]active][\&.[!]automatic][\&.[!]local]
106                                   [\&.[!]leaf][\&.[!]window][\&.[!]STATE][\&.[!]FLAG][\&.[!]LAYER][\&.[!]SPLIT_TYPE]
107                                   [\&.[!]same_class][\&.[!]descendant_of][\&.[!]ancestor_of]
108
109 STATE := tiled|pseudo_tiled|floating|fullscreen
110
111 FLAG := hidden|sticky|private|locked|marked|urgent
112
113 LAYER := below|normal|above
114
115 SPLIT_TYPE := horizontal|vertical
116
117 PATH := @[DESKTOP_SEL:][[/]JUMP](/JUMP)*
118
119 JUMP := first|1|second|2|brother|parent|DIR
120 .fi
121 .if n \{\
122 .RE
123 .\}
124 .sp
125 .it 1 an-trap
126 .nr an-no-space-flag 1
127 .nr an-break-flag 1
128 .br
129 .ps +1
130 \fBDescriptors\fR
131 .RS 4
132 .PP
133 \fIDIR\fR
134 .RS 4
135 Selects the window in the given (spacial) direction relative to the reference node\&.
136 .RE
137 .PP
138 \fICYCLE_DIR\fR
139 .RS 4
140 Selects the node in the given (cyclic) direction relative to the reference node within a depth\-first in\-order traversal of the tree\&.
141 .RE
142 .PP
143 \fIPATH\fR
144 .RS 4
145 Selects the node at the given path\&.
146 .RE
147 .PP
148 any
149 .RS 4
150 Selects the first node that matches the given selectors\&.
151 .RE
152 .PP
153 first_ancestor
154 .RS 4
155 Selects the first ancestor of the reference node that matches the given selectors\&.
156 .RE
157 .PP
158 last
159 .RS 4
160 Selects the previously focused node relative to the reference node\&.
161 .RE
162 .PP
163 newest
164 .RS 4
165 Selects the newest node in the history of the focused node\&.
166 .RE
167 .PP
168 older
169 .RS 4
170 Selects the node older than the reference node in the history\&.
171 .RE
172 .PP
173 newer
174 .RS 4
175 Selects the node newer than the reference node in the history\&.
176 .RE
177 .PP
178 focused
179 .RS 4
180 Selects the currently focused node\&.
181 .RE
182 .PP
183 pointed
184 .RS 4
185 Selects the leaf under the pointer\&.
186 .RE
187 .PP
188 biggest
189 .RS 4
190 Selects the biggest leaf\&.
191 .RE
192 .PP
193 smallest
194 .RS 4
195 Selects the smallest leaf\&.
196 .RE
197 .PP
198 <node_id>
199 .RS 4
200 Selects the node with the given ID\&.
201 .RE
202 .RE
203 .sp
204 .it 1 an-trap
205 .nr an-no-space-flag 1
206 .nr an-break-flag 1
207 .br
208 .ps +1
209 \fBPath Jumps\fR
210 .RS 4
211 .sp
212 The initial node is the focused node (or the root if the path starts with \fI/\fR) of the reference desktop (or the selected desktop if the path has a \fIDESKTOP_SEL\fR prefix)\&.
213 .PP
214 1|first
215 .RS 4
216 Jumps to the first child\&.
217 .RE
218 .PP
219 2|second
220 .RS 4
221 Jumps to the second child\&.
222 .RE
223 .PP
224 brother
225 .RS 4
226 Jumps to the brother node\&.
227 .RE
228 .PP
229 parent
230 .RS 4
231 Jumps to the parent node\&.
232 .RE
233 .PP
234 \fIDIR\fR
235 .RS 4
236 Jumps to the node holding the edge in the given direction\&.
237 .RE
238 .RE
239 .sp
240 .it 1 an-trap
241 .nr an-no-space-flag 1
242 .nr an-break-flag 1
243 .br
244 .ps +1
245 \fBModifiers\fR
246 .RS 4
247 .PP
248 [!]focused
249 .RS 4
250 Only consider the focused node\&.
251 .RE
252 .PP
253 [!]active
254 .RS 4
255 Only consider nodes that are the focused node of their desktop\&.
256 .RE
257 .PP
258 [!]automatic
259 .RS 4
260 Only consider nodes in automatic insertion mode\&. See also
261 \fB\-\-presel\-dir\fR
262 under
263 \fBNode\fR
264 in the
265 \fBDOMAINS\fR
266 section below\&.
267 .RE
268 .PP
269 [!]local
270 .RS 4
271 Only consider nodes in the reference desktop\&.
272 .RE
273 .PP
274 [!]leaf
275 .RS 4
276 Only consider leaf nodes\&.
277 .RE
278 .PP
279 [!]window
280 .RS 4
281 Only consider nodes that hold a window\&.
282 .RE
283 .PP
284 [!](tiled|pseudo_tiled|floating|fullscreen)
285 .RS 4
286 Only consider windows in the given state\&.
287 .RE
288 .PP
289 [!]same_class
290 .RS 4
291 Only consider windows that have the same class as the reference window\&.
292 .RE
293 .PP
294 [!]descendant_of
295 .RS 4
296 Only consider nodes that are descendants of the reference node\&.
297 .RE
298 .PP
299 [!]ancestor_of
300 .RS 4
301 Only consider nodes that are ancestors of the reference node\&.
302 .RE
303 .PP
304 [!](hidden|sticky|private|locked|marked|urgent)
305 .RS 4
306 Only consider windows that have the given flag set\&.
307 .RE
308 .PP
309 [!](below|normal|above)
310 .RS 4
311 Only consider windows in the given layer\&.
312 .RE
313 .PP
314 [!](horizontal|vertical)
315 .RS 4
316 Only consider nodes with the given split type\&.
317 .RE
318 .RE
319 .SS "Desktop"
320 .sp
321 Select a desktop\&.
322 .sp
323 .if n \{\
324 .RS 4
325 .\}
326 .nf
327 DESKTOP_SEL := [DESKTOP_SEL#](CYCLE_DIR|any|last|newest|older|newer|
328                               [MONITOR_SEL:](focused|^<n>)|
329                               <desktop_id>|<desktop_name>)[\&.[!]focused][\&.[!]active]
330                                                           [\&.[!]occupied][\&.[!]urgent][\&.[!]local]
331                                                           [\&.[!]LAYOUT][\&.[!]user_LAYOUT]
332
333 LAYOUT := tiled|monocle
334 .fi
335 .if n \{\
336 .RE
337 .\}
338 .sp
339 .it 1 an-trap
340 .nr an-no-space-flag 1
341 .nr an-break-flag 1
342 .br
343 .ps +1
344 \fBDescriptors\fR
345 .RS 4
346 .PP
347 \fICYCLE_DIR\fR
348 .RS 4
349 Selects the desktop in the given direction relative to the reference desktop\&.
350 .RE
351 .PP
352 any
353 .RS 4
354 Selects the first desktop that matches the given selectors\&.
355 .RE
356 .PP
357 last
358 .RS 4
359 Selects the previously focused desktop relative to the reference desktop\&.
360 .RE
361 .PP
362 newest
363 .RS 4
364 Selects the newest desktop in the history of the focused desktops\&.
365 .RE
366 .PP
367 older
368 .RS 4
369 Selects the desktop older than the reference desktop in the history\&.
370 .RE
371 .PP
372 newer
373 .RS 4
374 Selects the desktop newer than the reference desktop in the history\&.
375 .RE
376 .PP
377 focused
378 .RS 4
379 Selects the currently focused desktop\&.
380 .RE
381 .PP
382 ^<n>
383 .RS 4
384 Selects the nth desktop\&. If
385 \fBMONITOR_SEL\fR
386 is given, selects the nth desktop on the selected monitor\&.
387 .RE
388 .PP
389 <desktop_id>
390 .RS 4
391 Selects the desktop with the given ID\&.
392 .RE
393 .PP
394 <desktop_name>
395 .RS 4
396 Selects the desktop with the given name\&.
397 .RE
398 .RE
399 .sp
400 .it 1 an-trap
401 .nr an-no-space-flag 1
402 .nr an-break-flag 1
403 .br
404 .ps +1
405 \fBModifiers\fR
406 .RS 4
407 .PP
408 [!]focused
409 .RS 4
410 Only consider the focused desktop\&.
411 .RE
412 .PP
413 [!]active
414 .RS 4
415 Only consider desktops that are the focused desktop of their monitor\&.
416 .RE
417 .PP
418 [!]occupied
419 .RS 4
420 Only consider occupied desktops\&.
421 .RE
422 .PP
423 [!]urgent
424 .RS 4
425 Only consider urgent desktops\&.
426 .RE
427 .PP
428 [!]local
429 .RS 4
430 Only consider desktops inside the reference monitor\&.
431 .RE
432 .PP
433 [!](tiled|monocle)
434 .RS 4
435 Only consider desktops with the given layout\&.
436 .RE
437 .PP
438 [!](user_tiled|user_monocle)
439 .RS 4
440 Only consider desktops which have the given layout as userLayout\&.
441 .RE
442 .RE
443 .SS "Monitor"
444 .sp
445 Select a monitor\&.
446 .sp
447 .if n \{\
448 .RS 4
449 .\}
450 .nf
451 MONITOR_SEL := [MONITOR_SEL#](DIR|CYCLE_DIR|any|last|newest|older|newer|
452                               focused|pointed|primary|^<n>|
453                               <monitor_id>|<monitor_name>)[\&.[!]focused][\&.[!]occupied]
454 .fi
455 .if n \{\
456 .RE
457 .\}
458 .sp
459 .it 1 an-trap
460 .nr an-no-space-flag 1
461 .nr an-break-flag 1
462 .br
463 .ps +1
464 \fBDescriptors\fR
465 .RS 4
466 .PP
467 \fIDIR\fR
468 .RS 4
469 Selects the monitor in the given (spacial) direction relative to the reference monitor\&.
470 .RE
471 .PP
472 \fICYCLE_DIR\fR
473 .RS 4
474 Selects the monitor in the given (cyclic) direction relative to the reference monitor\&.
475 .RE
476 .PP
477 any
478 .RS 4
479 Selects the first monitor that matches the given selectors\&.
480 .RE
481 .PP
482 last
483 .RS 4
484 Selects the previously focused monitor relative to the reference monitor\&.
485 .RE
486 .PP
487 newest
488 .RS 4
489 Selects the newest monitor in the history of the focused monitors\&.
490 .RE
491 .PP
492 older
493 .RS 4
494 Selects the monitor older than the reference monitor in the history\&.
495 .RE
496 .PP
497 newer
498 .RS 4
499 Selects the monitor newer than the reference monitor in the history\&.
500 .RE
501 .PP
502 focused
503 .RS 4
504 Selects the currently focused monitor\&.
505 .RE
506 .PP
507 pointed
508 .RS 4
509 Selects the monitor under the pointer\&.
510 .RE
511 .PP
512 primary
513 .RS 4
514 Selects the primary monitor\&.
515 .RE
516 .PP
517 ^<n>
518 .RS 4
519 Selects the nth monitor\&.
520 .RE
521 .PP
522 <monitor_id>
523 .RS 4
524 Selects the monitor with the given ID\&.
525 .RE
526 .PP
527 <monitor_name>
528 .RS 4
529 Selects the monitor with the given name\&.
530 .RE
531 .RE
532 .sp
533 .it 1 an-trap
534 .nr an-no-space-flag 1
535 .nr an-break-flag 1
536 .br
537 .ps +1
538 \fBModifiers\fR
539 .RS 4
540 .PP
541 [!]focused
542 .RS 4
543 Only consider the focused monitor\&.
544 .RE
545 .PP
546 [!]occupied
547 .RS 4
548 Only consider monitors where the focused desktop is occupied\&.
549 .RE
550 .RE
551 .SH "WINDOW STATES"
552 .PP
553 tiled
554 .RS 4
555 Its size and position are determined by the window tree\&.
556 .RE
557 .PP
558 pseudo_tiled
559 .RS 4
560 A tiled window that automatically shrinks but doesn\(cqt stretch beyond its floating size\&.
561 .RE
562 .PP
563 floating
564 .RS 4
565 Can be moved/resized freely\&. Although it doesn\(cqt use any tiling space, it is still part of the window tree\&.
566 .RE
567 .PP
568 fullscreen
569 .RS 4
570 Fills its monitor rectangle and has no borders\&.
571 .RE
572 .SH "NODE FLAGS"
573 .PP
574 hidden
575 .RS 4
576 Is hidden and doesn\(cqt occupy any tiling space\&.
577 .RE
578 .PP
579 sticky
580 .RS 4
581 Stays in the focused desktop of its monitor\&.
582 .RE
583 .PP
584 private
585 .RS 4
586 Tries to keep the same tiling position/size\&.
587 .RE
588 .PP
589 locked
590 .RS 4
591 Ignores the
592 \fBnode \-\-close\fR
593 message\&.
594 .RE
595 .PP
596 marked
597 .RS 4
598 Is marked (useful for deferred actions)\&. A marked node becomes unmarked after being sent on a preselected node\&.
599 .RE
600 .PP
601 urgent
602 .RS 4
603 Has its urgency hint set\&. This flag is set externally\&.
604 .RE
605 .SH "STACKING LAYERS"
606 .sp
607 There\(cqs three stacking layers: BELOW, NORMAL and ABOVE\&.
608 .sp
609 In each layer, the window are orderered as follow: tiled & pseudo\-tiled < floating < fullscreen\&.
610 .SH "RECEPTACLES"
611 .sp
612 A leaf node that doesn\(cqt 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 \fIexamples/receptacles\fR to store and recreate layouts\&.
613 .SH "DOMAINS"
614 .SS "Node"
615 .sp
616 .it 1 an-trap
617 .nr an-no-space-flag 1
618 .nr an-break-flag 1
619 .br
620 .ps +1
621 \fBGeneral Syntax\fR
622 .RS 4
623 .sp
624 node [\fINODE_SEL\fR] \fICOMMANDS\fR
625 .sp
626 If \fINODE_SEL\fR is omitted, \fBfocused\fR is assumed\&.
627 .RE
628 .sp
629 .it 1 an-trap
630 .nr an-no-space-flag 1
631 .nr an-break-flag 1
632 .br
633 .ps +1
634 \fBCommands\fR
635 .RS 4
636 .PP
637 \fB\-f\fR, \fB\-\-focus\fR [\fINODE_SEL\fR]
638 .RS 4
639 Focus the selected or given node\&.
640 .RE
641 .PP
642 \fB\-a\fR, \fB\-\-activate\fR [\fINODE_SEL\fR]
643 .RS 4
644 Activate the selected or given node\&.
645 .RE
646 .PP
647 \fB\-d\fR, \fB\-\-to\-desktop\fR \fIDESKTOP_SEL\fR [\fB\-\-follow\fR]
648 .RS 4
649 Send the selected node to the given desktop\&. If
650 \fB\-\-follow\fR
651 is passed, the focused node will stay focused\&.
652 .RE
653 .PP
654 \fB\-m\fR, \fB\-\-to\-monitor\fR \fIMONITOR_SEL\fR [\fB\-\-follow\fR]
655 .RS 4
656 Send the selected node to the given monitor\&. If
657 \fB\-\-follow\fR
658 is passed, the focused node will stay focused\&.
659 .RE
660 .PP
661 \fB\-n\fR, \fB\-\-to\-node\fR \fINODE_SEL\fR [\fB\-\-follow\fR]
662 .RS 4
663 Send the selected node on the given node\&. If
664 \fB\-\-follow\fR
665 is passed, the focused node will stay focused\&.
666 .RE
667 .PP
668 \fB\-s\fR, \fB\-\-swap\fR \fINODE_SEL\fR [\fB\-\-follow\fR]
669 .RS 4
670 Swap the selected node with the given node\&. If
671 \fB\-\-follow\fR
672 is passed, the focused node will stay focused\&.
673 .RE
674 .PP
675 \fB\-p\fR, \fB\-\-presel\-dir\fR [~]\fIDIR\fR|cancel
676 .RS 4
677 Preselect the splitting area of the selected node (or cancel the preselection)\&. If
678 \fB~\fR
679 is prepended to
680 \fIDIR\fR
681 and the current preselection direction matches
682 \fIDIR\fR, then the argument is interpreted as
683 \fBcancel\fR\&. A node with a preselected area is said to be in "manual insertion mode"\&.
684 .RE
685 .PP
686 \fB\-o\fR, \fB\-\-presel\-ratio\fR \fIRATIO\fR
687 .RS 4
688 Set the splitting ratio of the preselection area\&.
689 .RE
690 .PP
691 \fB\-v\fR, \fB\-\-move\fR \fIdx\fR \fIdy\fR
692 .RS 4
693 Move the selected window by
694 \fIdx\fR
695 pixels horizontally and
696 \fIdy\fR
697 pixels vertically\&.
698 .RE
699 .PP
700 \fB\-z\fR, \fB\-\-resize\fR top|left|bottom|right|top_left|top_right|bottom_right|bottom_left \fIdx\fR \fIdy\fR
701 .RS 4
702 Resize the selected window by moving the given handle by
703 \fIdx\fR
704 pixels horizontally and
705 \fIdy\fR
706 pixels vertically\&.
707 .RE
708 .PP
709 \fB\-r\fR, \fB\-\-ratio\fR \fIRATIO\fR|(+|\-)(\fIPIXELS\fR|\fIFRACTION\fR)
710 .RS 4
711 Set the splitting ratio of the selected node (0 <
712 \fIRATIO\fR
713 < 1)\&.
714 .RE
715 .PP
716 \fB\-R\fR, \fB\-\-rotate\fR \fI90|270|180\fR
717 .RS 4
718 Rotate the tree rooted at the selected node\&.
719 .RE
720 .PP
721 \fB\-F\fR, \fB\-\-flip\fR \fIhorizontal|vertical\fR
722 .RS 4
723 Flip the the tree rooted at selected node\&.
724 .RE
725 .PP
726 \fB\-E\fR, \fB\-\-equalize\fR
727 .RS 4
728 Reset the split ratios of the tree rooted at the selected node to their default value\&.
729 .RE
730 .PP
731 \fB\-B\fR, \fB\-\-balance\fR
732 .RS 4
733 Adjust the split ratios of the tree rooted at the selected node so that all windows occupy the same area\&.
734 .RE
735 .PP
736 \fB\-C\fR, \fB\-\-circulate\fR forward|backward
737 .RS 4
738 Circulate the windows of the tree rooted at the selected node\&.
739 .RE
740 .PP
741 \fB\-t\fR, \fB\-\-state\fR [~](tiled|pseudo_tiled|floating|fullscreen)
742 .RS 4
743 Set the state of the selected window\&. If
744 \fB~\fR
745 is present and the current state matches the given state, then the argument is interpreted as the last state\&.
746 .RE
747 .PP
748 \fB\-g\fR, \fB\-\-flag\fR hidden|sticky|private|locked|marked[=on|off]
749 .RS 4
750 Set or toggle the given flag for the selected node\&.
751 .RE
752 .PP
753 \fB\-l\fR, \fB\-\-layer\fR below|normal|above
754 .RS 4
755 Set the stacking layer of the selected window\&.
756 .RE
757 .PP
758 \fB\-i\fR, \fB\-\-insert\-receptacle\fR
759 .RS 4
760 Insert a receptacle node at the selected node\&.
761 .RE
762 .PP
763 \fB\-c\fR, \fB\-\-close\fR
764 .RS 4
765 Close the windows rooted at the selected node\&.
766 .RE
767 .PP
768 \fB\-k\fR, \fB\-\-kill\fR
769 .RS 4
770 Kill the windows rooted at the selected node\&.
771 .RE
772 .RE
773 .SS "Desktop"
774 .sp
775 .it 1 an-trap
776 .nr an-no-space-flag 1
777 .nr an-break-flag 1
778 .br
779 .ps +1
780 \fBGeneral Syntax\fR
781 .RS 4
782 .sp
783 desktop [\fIDESKTOP_SEL\fR] \fICOMMANDS\fR
784 .sp
785 If \fIDESKTOP_SEL\fR is omitted, \fBfocused\fR is assumed\&.
786 .RE
787 .sp
788 .it 1 an-trap
789 .nr an-no-space-flag 1
790 .nr an-break-flag 1
791 .br
792 .ps +1
793 \fBCOMMANDS\fR
794 .RS 4
795 .PP
796 \fB\-f\fR, \fB\-\-focus\fR [\fIDESKTOP_SEL\fR]
797 .RS 4
798 Focus the selected or given desktop\&.
799 .RE
800 .PP
801 \fB\-a\fR, \fB\-\-activate\fR [\fIDESKTOP_SEL\fR]
802 .RS 4
803 Activate the selected or given desktop\&.
804 .RE
805 .PP
806 \fB\-m\fR, \fB\-\-to\-monitor\fR \fIMONITOR_SEL\fR [\fB\-\-follow\fR]
807 .RS 4
808 Send the selected desktop to the given monitor\&. If
809 \fB\-\-follow\fR
810 is passed, the focused desktop will stay focused\&.
811 .RE
812 .PP
813 \fB\-s\fR, \fB\-\-swap\fR \fIDESKTOP_SEL\fR [\fB\-\-follow\fR]
814 .RS 4
815 Swap the selected desktop with the given desktop\&. If
816 \fB\-\-follow\fR
817 is passed, the focused desktop will stay focused\&.
818 .RE
819 .PP
820 \fB\-l\fR, \fB\-\-layout\fR \fICYCLE_DIR\fR|monocle|tiled
821 .RS 4
822 Set or cycle the layout of the selected desktop\&.
823 .RE
824 .PP
825 \fB\-n\fR, \fB\-\-rename\fR <new_name>
826 .RS 4
827 Rename the selected desktop\&.
828 .RE
829 .PP
830 \fB\-b\fR, \fB\-\-bubble\fR \fICYCLE_DIR\fR
831 .RS 4
832 Bubble the selected desktop in the given direction\&.
833 .RE
834 .PP
835 \fB\-r\fR, \fB\-\-remove\fR
836 .RS 4
837 Remove the selected desktop\&.
838 .RE
839 .RE
840 .SS "Monitor"
841 .sp
842 .it 1 an-trap
843 .nr an-no-space-flag 1
844 .nr an-break-flag 1
845 .br
846 .ps +1
847 \fBGeneral Syntax\fR
848 .RS 4
849 .sp
850 monitor [\fIMONITOR_SEL\fR] \fICOMMANDS\fR
851 .sp
852 If \fIMONITOR_SEL\fR is omitted, \fBfocused\fR is assumed\&.
853 .RE
854 .sp
855 .it 1 an-trap
856 .nr an-no-space-flag 1
857 .nr an-break-flag 1
858 .br
859 .ps +1
860 \fBCommands\fR
861 .RS 4
862 .PP
863 \fB\-f\fR, \fB\-\-focus\fR [\fIMONITOR_SEL\fR]
864 .RS 4
865 Focus the selected or given monitor\&.
866 .RE
867 .PP
868 \fB\-s\fR, \fB\-\-swap\fR \fIMONITOR_SEL\fR
869 .RS 4
870 Swap the selected monitor with the given monitor\&.
871 .RE
872 .PP
873 \fB\-a\fR, \fB\-\-add\-desktops\fR <name>\&...
874 .RS 4
875 Create desktops with the given names in the selected monitor\&.
876 .RE
877 .PP
878 \fB\-o\fR, \fB\-\-reorder\-desktops\fR <name>\&...
879 .RS 4
880 Reorder the desktops of the selected monitor to match the given order\&.
881 .RE
882 .PP
883 \fB\-d\fR, \fB\-\-reset\-desktops\fR <name>\&...
884 .RS 4
885 Rename, add or remove desktops depending on whether the number of given names is equal, superior or inferior to the number of existing desktops\&.
886 .RE
887 .PP
888 \fB\-g\fR, \fB\-\-rectangle\fR WxH+X+Y
889 .RS 4
890 Set the rectangle of the selected monitor\&.
891 .RE
892 .PP
893 \fB\-n\fR, \fB\-\-rename\fR <new_name>
894 .RS 4
895 Rename the selected monitor\&.
896 .RE
897 .PP
898 \fB\-r\fR, \fB\-\-remove\fR
899 .RS 4
900 Remove the selected monitor\&.
901 .RE
902 .RE
903 .SS "Query"
904 .sp
905 .it 1 an-trap
906 .nr an-no-space-flag 1
907 .nr an-break-flag 1
908 .br
909 .ps +1
910 \fBGeneral Syntax\fR
911 .RS 4
912 .sp
913 query \fICOMMANDS\fR [\fIOPTIONS\fR]
914 .RE
915 .sp
916 .it 1 an-trap
917 .nr an-no-space-flag 1
918 .nr an-break-flag 1
919 .br
920 .ps +1
921 \fBCommands\fR
922 .RS 4
923 .sp
924 The optional selectors are references\&.
925 .PP
926 \fB\-N\fR, \fB\-\-nodes\fR [\fINODE_SEL\fR]
927 .RS 4
928 List the IDs of the matching nodes\&.
929 .RE
930 .PP
931 \fB\-D\fR, \fB\-\-desktops\fR [\fIDESKTOP_SEL\fR]
932 .RS 4
933 List the IDs (or names) of the matching desktops\&.
934 .RE
935 .PP
936 \fB\-M\fR, \fB\-\-monitors\fR [\fIMONITOR_SEL\fR]
937 .RS 4
938 List the IDs (or names) of the matching monitors\&.
939 .RE
940 .PP
941 \fB\-T\fR, \fB\-\-tree\fR
942 .RS 4
943 Print a JSON representation of the matching item\&.
944 .RE
945 .RE
946 .sp
947 .it 1 an-trap
948 .nr an-no-space-flag 1
949 .nr an-break-flag 1
950 .br
951 .ps +1
952 \fBOptions\fR
953 .RS 4
954 .PP
955 \fB\-m\fR,\fB\-\-monitor\fR [\fIMONITOR_SEL\fR|\fIMONITOR_MODIFIERS\fR], \fB\-d\fR,\fB\-\-desktop\fR [\fIDESKTOP_SEL\fR|\fIDESKTOP_MODIFIERS\fR], \fB\-n\fR, \fB\-\-node\fR [\fINODE_SEL\fR|\fINODE_MODIFIERS\fR]
956 .RS 4
957 Constrain matches to the selected monitors, desktops or nodes\&.
958 .RE
959 .PP
960 \fB\-\-names\fR
961 .RS 4
962 Print names instead of IDs\&. Can only be used with
963 \fI\-M\fR
964 and
965 \fI\-D\fR\&.
966 .RE
967 .RE
968 .SS "Wm"
969 .sp
970 .it 1 an-trap
971 .nr an-no-space-flag 1
972 .nr an-break-flag 1
973 .br
974 .ps +1
975 \fBGeneral Syntax\fR
976 .RS 4
977 .sp
978 wm \fICOMMANDS\fR
979 .RE
980 .sp
981 .it 1 an-trap
982 .nr an-no-space-flag 1
983 .nr an-break-flag 1
984 .br
985 .ps +1
986 \fBCommands\fR
987 .RS 4
988 .PP
989 \fB\-d\fR, \fB\-\-dump\-state\fR
990 .RS 4
991 Dump the current world state on standard output\&.
992 .RE
993 .PP
994 \fB\-l\fR, \fB\-\-load\-state\fR <file_path>
995 .RS 4
996 Load a world state from the given file\&. The path must be absolute\&.
997 .RE
998 .PP
999 \fB\-a\fR, \fB\-\-add\-monitor\fR <name> WxH+X+Y
1000 .RS 4
1001 Add a monitor for the given name and rectangle\&.
1002 .RE
1003 .PP
1004 \fB\-O\fR, \fB\-\-reorder\-monitors\fR <name>\&...
1005 .RS 4
1006 Reorder the list of monitors to match the given order\&.
1007 .RE
1008 .PP
1009 \fB\-o\fR, \fB\-\-adopt\-orphans\fR
1010 .RS 4
1011 Manage all the unmanaged windows remaining from a previous session\&.
1012 .RE
1013 .PP
1014 \fB\-h\fR, \fB\-\-record\-history\fR on|off
1015 .RS 4
1016 Enable or disable the recording of node focus history\&.
1017 .RE
1018 .PP
1019 \fB\-g\fR, \fB\-\-get\-status\fR
1020 .RS 4
1021 Print the current status information\&.
1022 .RE
1023 .PP
1024 \fB\-r\fR, \fB\-\-restart\fR
1025 .RS 4
1026 Restart the window manager
1027 .RE
1028 .RE
1029 .SS "Rule"
1030 .sp
1031 .it 1 an-trap
1032 .nr an-no-space-flag 1
1033 .nr an-break-flag 1
1034 .br
1035 .ps +1
1036 \fBGeneral Syntax\fR
1037 .RS 4
1038 .sp
1039 rule \fICOMMANDS\fR
1040 .RE
1041 .sp
1042 .it 1 an-trap
1043 .nr an-no-space-flag 1
1044 .nr an-break-flag 1
1045 .br
1046 .ps +1
1047 \fBCommands\fR
1048 .RS 4
1049 .PP
1050 \fB\-a\fR, \fB\-\-add\fR (<class_name>|*)[:(<instance_name>|*)[:(<name>|*)]] [\fB\-o\fR|\fB\-\-one\-shot\fR] [monitor=MONITOR_SEL|desktop=DESKTOP_SEL|node=NODE_SEL] [state=STATE] [layer=LAYER] [split_dir=DIR] [split_ratio=RATIO] [(hidden|sticky|private|locked|marked|center|follow|manage|focus|border)=(on|off)] [rectangle=WxH+X+Y]
1051 .RS 4
1052 Create a new rule\&.
1053 .RE
1054 .PP
1055 \fB\-r\fR, \fB\-\-remove\fR ^<n>|head|tail|(<class_name>|*)[:(<instance_name>|*)[:(<name>|*)]]\&...
1056 .RS 4
1057 Remove the given rules\&.
1058 .RE
1059 .PP
1060 \fB\-l\fR, \fB\-\-list\fR
1061 .RS 4
1062 List the rules\&.
1063 .RE
1064 .RE
1065 .SS "Config"
1066 .sp
1067 .it 1 an-trap
1068 .nr an-no-space-flag 1
1069 .nr an-break-flag 1
1070 .br
1071 .ps +1
1072 \fBGeneral Syntax\fR
1073 .RS 4
1074 .PP
1075 config [\-m \fIMONITOR_SEL\fR|\-d \fIDESKTOP_SEL\fR|\-n \fINODE_SEL\fR] <setting> [<value>]
1076 .RS 4
1077 Get or set the value of <setting>\&.
1078 .RE
1079 .RE
1080 .SS "Subscribe"
1081 .sp
1082 .it 1 an-trap
1083 .nr an-no-space-flag 1
1084 .nr an-break-flag 1
1085 .br
1086 .ps +1
1087 \fBGeneral Syntax\fR
1088 .RS 4
1089 .PP
1090 subscribe [\fIOPTIONS\fR] (all|report|monitor|desktop|node|\&...)*
1091 .RS 4
1092 Continuously print events\&. See the
1093 \fBEVENTS\fR
1094 section for the description of each event\&.
1095 .RE
1096 .RE
1097 .sp
1098 .it 1 an-trap
1099 .nr an-no-space-flag 1
1100 .nr an-break-flag 1
1101 .br
1102 .ps +1
1103 \fBOptions\fR
1104 .RS 4
1105 .PP
1106 \fB\-f\fR, \fB\-\-fifo\fR
1107 .RS 4
1108 Print a path to a FIFO from which events can be read and return\&.
1109 .RE
1110 .PP
1111 \fB\-c\fR, \fB\-\-count\fR \fICOUNT\fR
1112 .RS 4
1113 Stop the corresponding
1114 \fBbspc\fR
1115 process after having received
1116 \fICOUNT\fR
1117 events\&.
1118 .RE
1119 .RE
1120 .SS "Quit"
1121 .sp
1122 .it 1 an-trap
1123 .nr an-no-space-flag 1
1124 .nr an-break-flag 1
1125 .br
1126 .ps +1
1127 \fBGeneral Syntax\fR
1128 .RS 4
1129 .PP
1130 quit [<status>]
1131 .RS 4
1132 Quit with an optional exit status\&.
1133 .RE
1134 .RE
1135 .SH "EXIT CODES"
1136 .sp
1137 If the server can\(cqt handle a message, \fBbspc\fR will return with a non\-zero exit code\&.
1138 .SH "SETTINGS"
1139 .sp
1140 Colors are in the form \fI#RRGGBB\fR, booleans are \fItrue\fR, \fIon\fR, \fIfalse\fR or \fIoff\fR\&.
1141 .sp
1142 All the boolean settings are \fIfalse\fR by default unless stated otherwise\&.
1143 .SS "Global Settings"
1144 .PP
1145 \fInormal_border_color\fR
1146 .RS 4
1147 Color of the border of an unfocused window\&.
1148 .RE
1149 .PP
1150 \fIactive_border_color\fR
1151 .RS 4
1152 Color of the border of a focused window of an unfocused monitor\&.
1153 .RE
1154 .PP
1155 \fIfocused_border_color\fR
1156 .RS 4
1157 Color of the border of a focused window of a focused monitor\&.
1158 .RE
1159 .PP
1160 \fIpresel_feedback_color\fR
1161 .RS 4
1162 Color of the
1163 \fBnode \-\-presel\-{dir,ratio}\fR
1164 message feedback area\&.
1165 .RE
1166 .PP
1167 \fIsplit_ratio\fR
1168 .RS 4
1169 Default split ratio\&.
1170 .RE
1171 .PP
1172 \fIstatus_prefix\fR
1173 .RS 4
1174 Prefix prepended to each of the status lines\&.
1175 .RE
1176 .PP
1177 \fIexternal_rules_command\fR
1178 .RS 4
1179 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:
1180 \fBkey1=value1 key2=value2 \&...\fR
1181 (the valid key/value pairs are given in the description of the
1182 \fIrule\fR
1183 command)\&.
1184 .RE
1185 .PP
1186 \fIautomatic_scheme\fR
1187 .RS 4
1188 The insertion scheme used when the insertion point is in automatic mode\&. Accept the following values:
1189 \fBlongest_side\fR,
1190 \fBalternate\fR,
1191 \fBspiral\fR\&.
1192 .RE
1193 .PP
1194 \fIinitial_polarity\fR
1195 .RS 4
1196 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:
1197 \fBfirst_child\fR,
1198 \fBsecond_child\fR\&.
1199 .RE
1200 .PP
1201 \fIdirectional_focus_tightness\fR
1202 .RS 4
1203 The tightness of the algorithm used to decide whether a window is on the
1204 \fIDIR\fR
1205 side of another window\&. Accept the following values:
1206 \fBhigh\fR,
1207 \fBlow\fR\&.
1208 .RE
1209 .PP
1210 \fIremoval_adjustment\fR
1211 .RS 4
1212 Adjust the brother when unlinking a node from the tree in accordance with the automatic insertion scheme\&.
1213 .RE
1214 .PP
1215 \fIpresel_feedback\fR
1216 .RS 4
1217 Draw the preselection feedback area\&. Defaults to
1218 \fItrue\fR\&.
1219 .RE
1220 .PP
1221 \fIborderless_monocle\fR
1222 .RS 4
1223 Remove borders of tiled windows for the
1224 \fBmonocle\fR
1225 desktop layout\&.
1226 .RE
1227 .PP
1228 \fIgapless_monocle\fR
1229 .RS 4
1230 Remove gaps of tiled windows for the
1231 \fBmonocle\fR
1232 desktop layout\&.
1233 .RE
1234 .PP
1235 \fItop_monocle_padding\fR, \fIright_monocle_padding\fR, \fIbottom_monocle_padding\fR, \fIleft_monocle_padding\fR
1236 .RS 4
1237 Padding space added at the sides of the screen for the
1238 \fBmonocle\fR
1239 desktop layout\&.
1240 .RE
1241 .PP
1242 \fIsingle_monocle\fR
1243 .RS 4
1244 Set the desktop layout to
1245 \fBmonocle\fR
1246 if there\(cqs only one tiled window in the tree\&.
1247 .RE
1248 .PP
1249 \fIborderless_singleton\fR
1250 .RS 4
1251 Remove borders of the only window on the only monitor regardless its layout\&.
1252 .RE
1253 .PP
1254 \fIpointer_motion_interval\fR
1255 .RS 4
1256 The minimum interval, in milliseconds, between two motion notify events\&.
1257 .RE
1258 .PP
1259 \fIpointer_modifier\fR
1260 .RS 4
1261 Keyboard modifier used for moving or resizing windows\&. Accept the following values:
1262 \fBshift\fR,
1263 \fBcontrol\fR,
1264 \fBlock\fR,
1265 \fBmod1\fR,
1266 \fBmod2\fR,
1267 \fBmod3\fR,
1268 \fBmod4\fR,
1269 \fBmod5\fR\&.
1270 .RE
1271 .PP
1272 \fIpointer_action1\fR, \fIpointer_action2\fR, \fIpointer_action3\fR
1273 .RS 4
1274 Action performed when pressing
1275 \fIpointer_modifier\fR
1276 +
1277 \fIbutton<n>\fR\&. Accept the following values:
1278 \fBmove\fR,
1279 \fBresize_side\fR,
1280 \fBresize_corner\fR,
1281 \fBfocus\fR,
1282 \fBnone\fR\&.
1283 .RE
1284 .PP
1285 \fIclick_to_focus\fR
1286 .RS 4
1287 Button used for focusing a window (or a monitor)\&. The possible values are:
1288 \fBbutton1\fR,
1289 \fBbutton2\fR,
1290 \fBbutton3\fR,
1291 \fBany\fR,
1292 \fBnone\fR\&. Defaults to
1293 \fBbutton1\fR\&.
1294 .RE
1295 .PP
1296 \fIswallow_first_click\fR
1297 .RS 4
1298 Don\(cqt replay the click that makes a window focused if
1299 \fIclick_to_focus\fR
1300 isn\(cqt
1301 \fBnone\fR\&.
1302 .RE
1303 .PP
1304 \fIfocus_follows_pointer\fR
1305 .RS 4
1306 Focus the window under the pointer\&.
1307 .RE
1308 .PP
1309 \fIpointer_follows_focus\fR
1310 .RS 4
1311 When focusing a window, put the pointer at its center\&.
1312 .RE
1313 .PP
1314 \fIpointer_follows_monitor\fR
1315 .RS 4
1316 When focusing a monitor, put the pointer at its center\&.
1317 .RE
1318 .PP
1319 \fImapping_events_count\fR
1320 .RS 4
1321 Handle the next
1322 \fBmapping_events_count\fR
1323 mapping notify events\&. A negative value implies that every event needs to be handled\&.
1324 .RE
1325 .PP
1326 \fIignore_ewmh_focus\fR
1327 .RS 4
1328 Ignore EWMH focus requests coming from applications\&.
1329 .RE
1330 .PP
1331 \fIignore_ewmh_fullscreen\fR
1332 .RS 4
1333 Block the fullscreen state transitions that originate from an EWMH request\&. The possible values are:
1334 \fBnone\fR,
1335 \fBall\fR, or a comma separated list of the following values:
1336 \fBenter\fR,
1337 \fBexit\fR\&.
1338 .RE
1339 .PP
1340 \fIignore_ewmh_struts\fR
1341 .RS 4
1342 Ignore strut hinting from clients requesting to reserve space (i\&.e\&. task bars)\&.
1343 .RE
1344 .PP
1345 \fIcenter_pseudo_tiled\fR
1346 .RS 4
1347 Center pseudo tiled windows into their tiling rectangles\&. Defaults to
1348 \fItrue\fR\&.
1349 .RE
1350 .PP
1351 \fIhonor_size_hints\fR
1352 .RS 4
1353 Apply ICCCM window size hints\&.
1354 .RE
1355 .PP
1356 \fIremove_disabled_monitors\fR
1357 .RS 4
1358 Consider disabled monitors as disconnected\&.
1359 .RE
1360 .PP
1361 \fIremove_unplugged_monitors\fR
1362 .RS 4
1363 Remove unplugged monitors\&.
1364 .RE
1365 .PP
1366 \fImerge_overlapping_monitors\fR
1367 .RS 4
1368 Merge overlapping monitors (the bigger remains)\&.
1369 .RE
1370 .SS "Monitor and Desktop Settings"
1371 .PP
1372 \fItop_padding\fR, \fIright_padding\fR, \fIbottom_padding\fR, \fIleft_padding\fR
1373 .RS 4
1374 Padding space added at the sides of the monitor or desktop\&.
1375 .RE
1376 .SS "Desktop Settings"
1377 .PP
1378 \fIwindow_gap\fR
1379 .RS 4
1380 Size of the gap that separates windows\&.
1381 .RE
1382 .SS "Node Settings"
1383 .PP
1384 \fIborder_width\fR
1385 .RS 4
1386 Window border width\&.
1387 .RE
1388 .SH "POINTER BINDINGS"
1389 .PP
1390 \fIclick_to_focus\fR
1391 .RS 4
1392 Focus the window (or the monitor) under the pointer if the value isn\(cqt
1393 \fBnone\fR\&.
1394 .RE
1395 .PP
1396 \fIpointer_modifier\fR + \fIbutton1\fR
1397 .RS 4
1398 Move the window under the pointer\&.
1399 .RE
1400 .PP
1401 \fIpointer_modifier\fR + \fIbutton2\fR
1402 .RS 4
1403 Resize the window under the pointer by dragging the nearest side\&.
1404 .RE
1405 .PP
1406 \fIpointer_modifier\fR + \fIbutton3\fR
1407 .RS 4
1408 Resize the window under the pointer by dragging the nearest corner\&.
1409 .RE
1410 .sp
1411 The behavior of \fIpointer_modifier\fR + \fIbutton<n>\fR can be modified through the \fIpointer_action<n>\fR setting\&.
1412 .SH "EVENTS"
1413 .PP
1414 \fIreport\fR
1415 .RS 4
1416 See the next section for the description of the format\&.
1417 .RE
1418 .PP
1419 \fImonitor_add <monitor_id> <monitor_name> <monitor_geometry>\fR
1420 .RS 4
1421 A monitor is added\&.
1422 .RE
1423 .PP
1424 \fImonitor_rename <monitor_id> <old_name> <new_name>\fR
1425 .RS 4
1426 A monitor is renamed\&.
1427 .RE
1428 .PP
1429 \fImonitor_remove <monitor_id>\fR
1430 .RS 4
1431 A monitor is removed\&.
1432 .RE
1433 .PP
1434 \fImonitor_swap <src_monitor_id> <dst_monitor_id>\fR
1435 .RS 4
1436 A monitor is swapped\&.
1437 .RE
1438 .PP
1439 \fImonitor_focus <monitor_id>\fR
1440 .RS 4
1441 A monitor is focused\&.
1442 .RE
1443 .PP
1444 \fImonitor_geometry <monitor_id> <monitor_geometry>\fR
1445 .RS 4
1446 The geometry of a monitor changed\&.
1447 .RE
1448 .PP
1449 \fIdesktop_add <monitor_id> <desktop_id> <desktop_name>\fR
1450 .RS 4
1451 A desktop is added\&.
1452 .RE
1453 .PP
1454 \fIdesktop_rename <monitor_id> <desktop_id> <old_name> <new_name>\fR
1455 .RS 4
1456 A desktop is renamed\&.
1457 .RE
1458 .PP
1459 \fIdesktop_remove <monitor_id> <desktop_id>\fR
1460 .RS 4
1461 A desktop is removed\&.
1462 .RE
1463 .PP
1464 \fIdesktop_swap <src_monitor_id> <src_desktop_id> <dst_monitor_id> <dst_desktop_id>\fR
1465 .RS 4
1466 A desktop is swapped\&.
1467 .RE
1468 .PP
1469 \fIdesktop_transfer <src_monitor_id> <src_desktop_id> <dst_monitor_id>\fR
1470 .RS 4
1471 A desktop is transferred\&.
1472 .RE
1473 .PP
1474 \fIdesktop_focus <monitor_id> <desktop_id>\fR
1475 .RS 4
1476 A desktop is focused\&.
1477 .RE
1478 .PP
1479 \fIdesktop_activate <monitor_id> <desktop_id>\fR
1480 .RS 4
1481 A desktop is activated\&.
1482 .RE
1483 .PP
1484 \fIdesktop_layout <monitor_id> <desktop_id> tiled|monocle\fR
1485 .RS 4
1486 The layout of a desktop changed\&.
1487 .RE
1488 .PP
1489 \fInode_add <monitor_id> <desktop_id> <ip_id> <node_id>\fR
1490 .RS 4
1491 A node is added\&.
1492 .RE
1493 .PP
1494 \fInode_remove <monitor_id> <desktop_id> <node_id>\fR
1495 .RS 4
1496 A node is removed\&.
1497 .RE
1498 .PP
1499 \fInode_swap <src_monitor_id> <src_desktop_id> <src_node_id> <dst_monitor_id> <dst_desktop_id> <dst_node_id>\fR
1500 .RS 4
1501 A node is swapped\&.
1502 .RE
1503 .PP
1504 \fInode_transfer <src_monitor_id> <src_desktop_id> <src_node_id> <dst_monitor_id> <dst_desktop_id> <dst_node_id>\fR
1505 .RS 4
1506 A node is transferred\&.
1507 .RE
1508 .PP
1509 \fInode_focus <monitor_id> <desktop_id> <node_id>\fR
1510 .RS 4
1511 A node is focused\&.
1512 .RE
1513 .PP
1514 \fInode_activate <monitor_id> <desktop_id> <node_id>\fR
1515 .RS 4
1516 A node is activated\&.
1517 .RE
1518 .PP
1519 \fInode_presel <monitor_id> <desktop_id> <node_id> (dir DIR|ratio RATIO|cancel)\fR
1520 .RS 4
1521 A node is preselected\&.
1522 .RE
1523 .PP
1524 \fInode_stack <node_id_1> below|above <node_id_2>\fR
1525 .RS 4
1526 A node is stacked below or above another node\&.
1527 .RE
1528 .PP
1529 \fInode_geometry <monitor_id> <desktop_id> <node_id> <node_geometry>\fR
1530 .RS 4
1531 The geometry of a window changed\&.
1532 .RE
1533 .PP
1534 \fInode_state <monitor_id> <desktop_id> <node_id> tiled|pseudo_tiled|floating|fullscreen on|off\fR
1535 .RS 4
1536 The state of a window changed\&.
1537 .RE
1538 .PP
1539 \fInode_flag <monitor_id> <desktop_id> <node_id> hidden|sticky|private|locked|marked|urgent on|off\fR
1540 .RS 4
1541 One of the flags of a node changed\&.
1542 .RE
1543 .PP
1544 \fInode_layer <monitor_id> <desktop_id> <node_id> below|normal|above\fR
1545 .RS 4
1546 The layer of a window changed\&.
1547 .RE
1548 .PP
1549 \fIpointer_action <monitor_id> <desktop_id> <node_id> move|resize_corner|resize_side begin|end\fR
1550 .RS 4
1551 A pointer action occurred\&.
1552 .RE
1553 .sp
1554 Please note that \fBbspwm\fR initializes monitors before it reads messages on its socket, therefore the initial monitor events can\(cqt be received\&.
1555 .SH "REPORT FORMAT"
1556 .sp
1557 Each report event message is composed of items separated by colons\&.
1558 .sp
1559 Each item has the form \fI<type><value>\fR where \fI<type>\fR is the first character of the item\&.
1560 .PP
1561 \fIM<monitor_name>\fR
1562 .RS 4
1563 Focused monitor\&.
1564 .RE
1565 .PP
1566 \fIm<monitor_name>\fR
1567 .RS 4
1568 Unfocused monitor\&.
1569 .RE
1570 .PP
1571 \fIO<desktop_name>\fR
1572 .RS 4
1573 Occupied focused desktop\&.
1574 .RE
1575 .PP
1576 \fIo<desktop_name>\fR
1577 .RS 4
1578 Occupied unfocused desktop\&.
1579 .RE
1580 .PP
1581 \fIF<desktop_name>\fR
1582 .RS 4
1583 Free focused desktop\&.
1584 .RE
1585 .PP
1586 \fIf<desktop_name>\fR
1587 .RS 4
1588 Free unfocused desktop\&.
1589 .RE
1590 .PP
1591 \fIU<desktop_name>\fR
1592 .RS 4
1593 Urgent focused desktop\&.
1594 .RE
1595 .PP
1596 \fIu<desktop_name>\fR
1597 .RS 4
1598 Urgent unfocused desktop\&.
1599 .RE
1600 .PP
1601 \fIL(T|M)\fR
1602 .RS 4
1603 Layout of the focused desktop of a monitor\&.
1604 .RE
1605 .PP
1606 \fIT(T|P|F|=|@)\fR
1607 .RS 4
1608 State of the focused node of a focused desktop\&.
1609 .RE
1610 .PP
1611 \fIG(S?P?L?M?)\fR
1612 .RS 4
1613 Active flags of the focused node of a focused desktop\&.
1614 .RE
1615 .SH "ENVIRONMENT VARIABLES"
1616 .PP
1617 \fIBSPWM_SOCKET\fR
1618 .RS 4
1619 The path of the socket used for the communication between
1620 \fBbspc\fR
1621 and
1622 \fBbspwm\fR\&. If it isn\(cqt defined, then the following path is used:
1623 \fI/tmp/bspwm<host_name>_<display_number>_<screen_number>\-socket\fR\&.
1624 .RE
1625 .SH "CONTRIBUTORS"
1626 .sp
1627 .RS 4
1628 .ie n \{\
1629 \h'-04'\(bu\h'+03'\c
1630 .\}
1631 .el \{\
1632 .sp -1
1633 .IP \(bu 2.3
1634 .\}
1635 Steven Allen <steven at stebalien\&.com>
1636 .RE
1637 .sp
1638 .RS 4
1639 .ie n \{\
1640 \h'-04'\(bu\h'+03'\c
1641 .\}
1642 .el \{\
1643 .sp -1
1644 .IP \(bu 2.3
1645 .\}
1646 Thomas Adam <thomas at xteddy\&.org>
1647 .RE
1648 .sp
1649 .RS 4
1650 .ie n \{\
1651 \h'-04'\(bu\h'+03'\c
1652 .\}
1653 .el \{\
1654 .sp -1
1655 .IP \(bu 2.3
1656 .\}
1657 Ivan Kanakarakis <ivan\&.kanak at gmail\&.com>
1658 .RE
1659 .SH "AUTHOR"
1660 .sp
1661 Bastien Dejean <nihilhill at gmail\&.com>