]> git.lizzy.rs Git - bspwm.git/blob - doc/bspwm.1.asciidoc
70f1919054113f94e895db60ce3618f2db814183
[bspwm.git] / doc / bspwm.1.asciidoc
1 :man source:   Bspwm
2 :man version:  {revnumber}
3 :man manual:   Bspwm Manual
4
5 bspwm(1)
6 ========
7
8 Name
9 ----
10
11 bspwm - Binary space partitioning window manager
12
13 Synopsis
14 --------
15
16 *bspwm* [*-h*|*-v*|*-c* 'CONFIG_PATH']
17
18 *bspc* 'DOMAIN' ['SELECTOR'] 'COMMANDS'
19
20 *bspc* 'COMMAND' ['OPTIONS'] ['ARGUMENTS']
21
22 Description
23 -----------
24
25 *bspwm* is a tiling window manager that represents windows as the leaves of a full binary tree.
26
27 It is controlled and configured via *bspc*.
28
29
30 Options
31 -------
32
33 *-h*::
34         Print the synopsis and exit.
35
36 *-v*::
37         Print the version and exit.
38
39 *-c* 'CONFIG_PATH'::
40         Use the given configuration file.
41
42 Common Definitions
43 ------------------
44
45 ----
46 DIR         := north | west | south | east
47 CYCLE_DIR   := next | prev
48 ----
49
50 Selectors
51 ---------
52
53 Selectors are used to select a target node, desktop, or monitor. A selector
54 can either describe the target relatively or name it globally.
55
56 Selectors consist of an optional reference, a descriptor and any number of
57 non-conflicting modifiers as follows:
58
59         [REFERENCE#]DESCRIPTOR(.MODIFIER)*
60
61 The relative targets are computed in relation to the given reference (the
62 default reference value is *focused*).
63
64 An exclamation mark can be prepended to any modifier in order to reverse its
65 meaning.
66
67 The following characters cannot be used in monitor or desktop names: *#*, *:*, *.*.
68
69 The special selector *%<name>* can be used to select a monitor or a desktop with an invalid name.
70
71 Node
72 ~~~~
73
74 Select a node.
75
76 ----
77 NODE_SEL := [NODE_SEL#](DIR|CYCLE_DIR|PATH|any|last|newest|
78                         older|newer|focused|pointed|biggest|smallest|
79                         <node_id>)[.[!]focused][.[!]automatic][.[!]local][.[!]active]
80                                   [.[!]leaf][.[!]window][.[!]STATE][.[!]FLAG][.[!]LAYER]
81                                   [.[!]same_class][.[!]descendant_of][.[!]ancestor_of]
82
83 STATE := tiled|pseudo_tiled|floating|fullscreen
84
85 FLAG := hidden|sticky|private|locked|marked|urgent
86
87 LAYER := below|normal|above
88
89 PATH := @[DESKTOP_SEL:][[/]JUMP](/JUMP)*
90
91 JUMP := first|1|second|2|brother|parent|DIR
92 ----
93
94 Descriptors
95 ^^^^^^^^^^^
96
97 'DIR'::
98         Selects the window in the given (spacial) direction relative to the reference node.
99
100 'CYCLE_DIR'::
101         Selects the window in the given (cyclic) direction relative to the reference node.
102
103 'PATH'::
104         Selects the node at the given path.
105
106 any::
107         Selects the first node that matches the given selectors.
108
109 last::
110         Selects the previously focused node relative to the reference node.
111
112 newest::
113         Selects the newest node in the history of the focused node.
114
115 older::
116         Selects the node older than the reference node in the history.
117
118 newer::
119         Selects the node newer than the reference node in the history.
120
121 focused::
122         Selects the currently focused node.
123
124 pointed::
125         Selects the window under the pointer.
126
127 biggest::
128         Selects the biggest window.
129
130 smallest::
131         Selects the smallest window.
132
133 <node_id>::
134         Selects the node with the given ID.
135
136 Path Jumps
137 ^^^^^^^^^^
138
139 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).
140
141 1|first::
142         Jumps to the first child.
143
144 2|second::
145         Jumps to the second child.
146
147 brother::
148         Jumps to the brother node.
149
150 parent::
151         Jumps to the parent node.
152
153 'DIR'::
154         Jumps to the node holding the edge in the given direction.
155
156 Modifiers
157 ^^^^^^^^^
158
159 [!]focused::
160         Only consider focused or unfocused nodes.
161
162 [!]automatic::
163         Only consider nodes in automatic or manual insertion mode. See also *--presel-dir* under *Node* in the *DOMAINS* section below.
164
165 [!]local::
166         Only consider nodes in or not in the reference desktop.
167
168 [!]active::
169         Only consider nodes in or not in the active desktop of their monitor.
170
171 [!]leaf::
172         Only consider leaves or internal nodes.
173
174 [!]window::
175         Only consider nodes that hold or don't hold a window.
176
177 [!](tiled|pseudo_tiled|floating|fullscreen)::
178         Only consider windows in or not in the given state.
179
180 [!]same_class::
181         Only consider windows that have or don't have the same class as the reference window.
182
183 [!]descendant_of::
184         Only consider nodes that are or aren't descendants of the reference node.
185
186 [!]ancestor_of::
187         Only consider nodes that are or aren't ancestors of the reference node.
188
189 [!](hidden|sticky|private|locked|marked|urgent)::
190         Only consider windows that have or don't have the given flag set.
191
192 [!](below|normal|above)::
193         Only consider windows in or not in the given layer.
194
195 Desktop
196 ~~~~~~~
197
198 Select a desktop.
199
200 ----
201 DESKTOP_SEL := [DESKTOP_SEL#](CYCLE_DIR|any|last|newest|older|newer|
202                               [MONITOR_SEL:](focused|^<n>)|
203                               <desktop_id>|<desktop_name>)[.[!]occupied][.[!]focused][.[!]urgent][.[!]local]
204 ----
205
206 Descriptors
207 ^^^^^^^^^^^
208
209 'CYCLE_DIR'::
210         Selects the desktop in the given direction relative to the reference desktop.
211
212 any::
213         Selects the first desktop that matches the given selectors.
214
215 last::
216         Selects the previously focused desktop relative to the reference desktop.
217
218 newest::
219         Selects the newest desktop in the history of the focused desktops.
220
221 older::
222         Selects the desktop older than the reference desktop in the history.
223
224 newer::
225         Selects the desktop newer than the reference desktop in the history.
226
227 focused::
228         Selects the currently focused desktop.
229
230 ^<n>::
231         Selects the nth desktop. If *MONITOR_SEL* is given, selects the nth desktop on the selected monitor.
232
233 <desktop_id>::
234         Selects the desktop with the given ID.
235
236 <desktop_name>::
237         Selects the desktop with the given name.
238
239 Modifiers
240 ^^^^^^^^^
241
242 [!]occupied::
243         Only consider occupied or free desktops.
244
245 [!]focused::
246         Only consider focused or unfocused desktops.
247
248 [!]urgent::
249         Only consider urgent or non urgent desktops.
250
251 [!]local::
252         Only consider desktops inside or outside of the reference monitor.
253
254 Monitor
255 ~~~~~~~
256
257 Select a monitor.
258
259 ----
260 MONITOR_SEL := [MONITOR_SEL#](DIR|CYCLE_DIR|any|last|newest|older|newer|
261                               focused|pointed|primary|^<n>|
262                               <monitor_id>|<monitor_name>)[.[!]occupied][.[!]focused]
263 ----
264
265 Descriptors
266 ^^^^^^^^^^^
267
268 'DIR'::
269         Selects the monitor in the given (spacial) direction relative to the reference monitor.
270
271 'CYCLE_DIR'::
272         Selects the monitor in the given (cyclic) direction relative to the reference monitor.
273
274 any::
275         Selects the first monitor that matches the given selectors.
276
277 last::
278         Selects the previously focused monitor relative to the reference monitor.
279
280 newest::
281         Selects the newest monitor in the history of the focused monitors.
282
283 older::
284         Selects the monitor older than the reference monitor in the history.
285
286 newer::
287         Selects the monitor newer than the reference monitor in the history.
288
289 focused::
290         Selects the currently focused monitor.
291
292 pointed::
293         Selects the monitor under the pointer.
294
295 primary::
296         Selects the primary monitor.
297
298 ^<n>::
299         Selects the nth monitor.
300
301 <monitor_id>::
302         Selects the monitor with the given ID.
303
304 <monitor_name>::
305         Selects the monitor with the given name.
306
307
308 Modifiers
309 ^^^^^^^^^
310
311 [!]occupied::
312         Only consider monitors where the focused desktop is occupied or free.
313
314 [!]focused::
315         Only consider focused or unfocused monitors.
316
317
318 Window States
319 -------------
320
321 tiled::
322         Its size and position are determined by the splitting type and ratio of each node of its path in the window tree.
323
324 pseudo_tiled::
325         Has an unrestricted size while being centered in its tiling space.
326
327 floating::
328         Can be moved/resized freely. Although it doesn't occupy any tiling space, it is still part of the window tree.
329
330 fullscreen::
331         Fills its monitor rectangle and has no borders. It is send in the ABOVE layer by default.
332
333
334 Node Flags
335 ----------
336
337 hidden::
338         Is hidden and doesn't occupy any tiling space.
339
340 sticky::
341         Stays in the focused desktop of its monitor.
342
343 private::
344         Tries to keep the same tiling position/size.
345
346 locked::
347         Ignores the *node --close* message.
348
349 marked::
350         Is marked (useful for deferred actions). A marked node becomes unmarked after being sent on a preselected node.
351
352 urgent::
353         Has its urgency hint set. This flag is set externally.
354
355
356 Stacking Layers
357 --------------
358
359 There's three stacking layers: BELOW, NORMAL and ABOVE.
360
361 In each layer, the window are orderered as follow: tiled & pseudo-tiled < fullscreen < floating.
362
363 Receptacles
364 -----------
365
366 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.
367
368
369 Domains
370 -------
371
372 Node
373 ~~~~
374
375 General Syntax
376 ^^^^^^^^^^^^^^
377
378 node ['NODE_SEL'] 'COMMANDS'
379
380 If 'NODE_SEL' is omitted, *focused* is assumed.
381
382 Commands
383 ^^^^^^^^
384 *-f*, *--focus* ['NODE_SEL']::
385         Focus the selected or given node.
386
387 *-a*, *--activate* ['NODE_SEL']::
388         Activate the selected or given node.
389
390 *-d*, *--to-desktop* 'DESKTOP_SEL' [*--follow*]::
391         Send the selected node to the given desktop. If *--follow* is passed, the focused node will stay focused.
392
393 *-m*, *--to-monitor* 'MONITOR_SEL' [*--follow*]::
394         Send the selected node to the given monitor. If *--follow* is passed, the focused node will stay focused.
395
396 *-n*, *--to-node* 'NODE_SEL' [*--follow*]::
397         Send the selected node on the given node. If *--follow* is passed, the focused node will stay focused.
398
399 *-s*, *--swap* 'NODE_SEL' [*--follow*]::
400         Swap the selected node with the given node. If *--follow* is passed, the focused node will stay focused.
401
402 *-p*, *--presel-dir* \[~]'DIR'|cancel::
403         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".
404
405 *-o*, *--presel-ratio* 'RATIO'::
406         Set the splitting ratio of the preselection area.
407
408 *-v*, *--move* 'dx' 'dy'::
409         Move the selected window by 'dx' pixels horizontally and 'dy' pixels vertically.
410
411 *-z*, *--resize* top|left|bottom|right|top_left|top_right|bottom_right|bottom_left 'dx' 'dy'::
412         Resize the selected window by moving the given handle by 'dx' pixels horizontally and 'dy' pixels vertically.
413
414 *-r*, *--ratio* 'RATIO'|(+|-)('PIXELS'|'FRACTION')::
415         Set the splitting ratio of the selected node (0 < 'RATIO' < 1).
416
417 *-R*, *--rotate* '90|270|180'::
418         Rotate the tree rooted at the selected node.
419
420 *-F*, *--flip* 'horizontal|vertical'::
421         Flip the the tree rooted at selected node.
422
423 *-E*, *--equalize*::
424         Reset the split ratios of the tree rooted at the selected node to their default value.
425
426 *-B*, *--balance*::
427         Adjust the split ratios of the tree rooted at the selected node so that all windows occupy the same area.
428
429 *-C*, *--circulate* forward|backward::
430         Circulate the windows of the tree rooted at the selected node.
431
432 *-t*, *--state* [~](tiled|pseudo_tiled|floating|fullscreen)::
433         Set the state of the selected window. If *~* is present and the current state matches the given state, then the argument is interpreted as the last state.
434
435 *-g*, *--flag* hidden|sticky|private|locked|marked[=on|off]::
436         Set or toggle the given flag for the selected node.
437
438 *-l*, *--layer* below|normal|above::
439         Set the stacking layer of the selected window.
440
441 *-i*, *--insert-receptacle*::
442         Insert a receptacle node at the selected node.
443
444 *-c*, *--close*::
445         Close the windows rooted at the selected node.
446
447 *-k*, *--kill*::
448         Kill the windows rooted at the selected node.
449
450 Desktop
451 ~~~~~~~
452
453 General Syntax
454 ^^^^^^^^^^^^^^
455
456 desktop ['DESKTOP_SEL'] 'COMMANDS'
457
458 If 'DESKTOP_SEL' is omitted, *focused* is assumed.
459
460 COMMANDS
461 ^^^^^^^^
462 *-f*, *--focus* ['DESKTOP_SEL']::
463         Focus the selected or given desktop.
464
465 *-a*, *--activate* ['DESKTOP_SEL']::
466         Activate the selected or given desktop.
467
468 *-m*, *--to-monitor* 'MONITOR_SEL' [*--follow*]::
469         Send the selected desktop to the given monitor. If *--follow* is passed, the focused desktop will stay focused.
470
471 *-s*, *--swap* 'DESKTOP_SEL' [*--follow*]::
472         Swap the selected desktop with the given desktop. If *--follow* is passed, the focused desktop will stay focused.
473
474 *-l*, *--layout* 'CYCLE_DIR'|monocle|tiled::
475         Set or cycle the layout of the selected desktop.
476
477 *-n*, *--rename* <new_name>::
478         Rename the selected desktop.
479
480 *-b*, *--bubble* 'CYCLE_DIR'::
481         Bubble the selected desktop in the given direction.
482
483 *-r*, *--remove*::
484         Remove the selected desktop.
485
486 Monitor
487 ~~~~~~~
488
489 General Syntax
490 ^^^^^^^^^^^^^^
491
492 monitor ['MONITOR_SEL'] 'COMMANDS'
493
494 If 'MONITOR_SEL' is omitted, *focused* is assumed.
495
496 Commands
497 ^^^^^^^^
498 *-f*, *--focus* ['MONITOR_SEL']::
499         Focus the selected or given monitor.
500
501 *-s*, *--swap* 'MONITOR_SEL'::
502         Swap the selected monitor with the given monitor.
503
504 *-a*, *--add-desktops* <name>...::
505         Create desktops with the given names in the selected monitor.
506
507 *-o*, *--reorder-desktops* <name>...::
508         Reorder the desktops of the selected monitor to match the given order.
509
510 *-d*, *--reset-desktops* <name>...::
511         Rename, add or remove desktops depending on whether the number of given names is equal, superior or inferior to the number of existing desktops.
512
513 *-g*, *--rectangle* WxH+X+Y::
514         Set the rectangle of the selected monitor.
515
516 *-n*, *--rename* <new_name>::
517         Rename the selected monitor.
518
519 *-r*, *--remove*::
520         Remove the selected monitor.
521
522 Query
523 ~~~~~
524
525 General Syntax
526 ^^^^^^^^^^^^^^
527
528 query 'COMMANDS' ['OPTIONS']
529
530 Commands
531 ^^^^^^^^
532
533 The optional selectors are references.
534
535 *-N*, *--nodes* ['NODE_SEL']::
536         List the IDs of the matching nodes.
537
538 *-D*, *--desktops* ['DESKTOP_SEL']::
539         List the IDs (or names) of the matching desktops.
540
541 *-M*, *--monitors* ['MONITOR_SEL']::
542         List the IDs (or names) of the matching monitors.
543
544 *-T*, *--tree*::
545         Print a JSON representation of the matching item.
546
547 Options
548 ^^^^^^^
549
550 *-m*,*--monitor* ['MONITOR_SEL']::
551 *-d*,*--desktop* ['DESKTOP_SEL']::
552 *-n*, *--node* ['NODE_SEL']::
553         Constrain matches to the selected monitor, desktop or node. The descriptor can be omitted for '-M', '-D' and '-N'.
554
555 *--names*::
556         Print names instead of IDs. Can only be used with '-M' and '-D'.
557
558 Wm
559 ~~
560
561 General Syntax
562 ^^^^^^^^^^^^^^
563
564 wm 'COMMANDS'
565
566 Commands
567 ^^^^^^^^
568
569 *-d*, *--dump-state*::
570         Dump the current world state on standard output.
571
572 *-l*, *--load-state* <file_path>::
573         Load a world state from the given file.
574
575 *-a*, *--add-monitor* <name> WxH+X+Y::
576         Add a monitor for the given name and rectangle.
577
578 *-O*, *--reorder-monitors* <name>...::
579         Reorder the list of monitors to match the given order.
580
581 *-o*, *--adopt-orphans*::
582         Manage all the unmanaged windows remaining from a previous session.
583
584 *-h*, *--record-history* on|off::
585         Enable or disable the recording of node focus history.
586
587 *-g*, *--get-status*::
588         Print the current status information.
589
590 Rule
591 ~~~~
592
593 General Syntax
594 ^^^^^^^^^^^^^^
595
596 rule 'COMMANDS'
597
598 Commands
599 ^^^^^^^^
600
601 *-a*, *--add* (<class_name>|\*)[:(<instance_name>|\*)] [*-o*|*--one-shot*] [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]::
602         Create a new rule.
603
604 *-r*, *--remove* ^<n>|head|tail|(<class_name>|\*)[:(<instance_name>|*)]...::
605         Remove the given rules.
606
607 *-l*, *--list*::
608         List the rules.
609
610 Config
611 ~~~~~~
612
613 General Syntax
614 ^^^^^^^^^^^^^^
615
616 config [-m 'MONITOR_SEL'|-d 'DESKTOP_SEL'|-n 'NODE_SEL'] <setting> [<value>]::
617         Get or set the value of <setting>.
618
619 Subscribe
620 ~~~~~~~~~
621
622 General Syntax
623 ^^^^^^^^^^^^^^
624 subscribe ['OPTIONS'] (all|report|monitor|desktop|node|...)*::
625         Continuously print events. See the *EVENTS* section for the description of each event.
626
627 Options
628 ^^^^^^^
629
630 *-f*, *--fifo*::
631         Print a path to a FIFO from which events can be read and return.
632
633 *-c*, *--count* 'COUNT'::
634         Stop the corresponding *bspc* process after having received 'COUNT' events.
635
636 Quit
637 ~~~~
638
639 General Syntax
640 ^^^^^^^^^^^^^^
641
642 quit [<status>]::
643         Quit with an optional exit status.
644
645 Exit Codes
646 ----------
647
648 If the server can't handle a message, *bspc* will return with a non-zero exit code.
649
650 Settings
651 --------
652 Colors are in the form '#RRGGBB', booleans are 'true', 'on', 'false' or 'off'.
653
654 All the boolean settings are 'false' by default unless stated otherwise.
655
656 Global Settings
657 ~~~~~~~~~~~~~~~
658
659 'normal_border_color'::
660         Color of the border of an unfocused window.
661
662 'active_border_color'::
663         Color of the border of a focused window of an unfocused monitor.
664
665 'focused_border_color'::
666         Color of the border of a focused window of a focused monitor.
667
668 'presel_feedback_color'::
669         Color of the *node --presel-{dir,ratio}* message feedback area.
670
671 'split_ratio'::
672         Default split ratio.
673
674 'status_prefix'::
675         Prefix prepended to each of the status lines.
676
677 'external_rules_command'::
678         External 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).
679
680 'initial_polarity'::
681         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*.
682
683 'directional_focus_tightness'::
684         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*.
685
686 'borderless_monocle'::
687         Remove borders of tiled windows for the *monocle* desktop layout.
688
689 'gapless_monocle'::
690         Remove gaps of tiled windows for the *monocle* desktop layout.
691
692 'paddingless_monocle'::
693         Remove padding space for the *monocle* desktop layout.
694
695 'single_monocle'::
696         Set the desktop layout to *monocle* if there's only one tiled window in the tree.
697
698 'pointer_motion_interval'::
699         The minimum interval, in milliseconds, between two motion notify events.
700
701 'pointer_modifier'::
702         Keyboard modifier used for moving or resizing windows. Accept the following values: *shift*, *control*, *lock*, *mod1*, *mod2*, *mod3*, *mod4*, *mod5*.
703
704 'pointer_action1'::
705 'pointer_action2'::
706 'pointer_action3'::
707         Action performed when pressing 'pointer_modifier' + 'button<n>'. Accept the following values: *move*, *resize_side*, *resize_corner*, *focus*, *none*.
708
709 'click_to_focus'::
710         Button used for focusing a window (or a monitor). The possible values are: *button1*, *button2*, *button3*, *any*, *none*. Defaults to *button1*.
711
712 'swallow_first_click'::
713         Don't replay the click that makes a window focused if 'click_to_focus' isn't *none*.
714
715 'focus_follows_pointer'::
716         Focus the window under the pointer.
717
718 'pointer_follows_focus'::
719         When focusing a window, put the pointer at its center.
720
721 'pointer_follows_monitor'::
722         When focusing a monitor, put the pointer at its center.
723
724 'mapping_events_count'::
725         Handle the next *mapping_events_count* mapping notify events. A negative value implies that every event needs to be handled.
726
727 'ignore_ewmh_focus'::
728         Ignore EWMH focus requests coming from applications.
729
730 'ignore_ewmh_fullscreen'::
731         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*.
732
733 'center_pseudo_tiled'::
734         Center pseudo tiled windows into their tiling rectangles. Defaults to 'true'.
735
736 'honor_size_hints'::
737         Apply ICCCM window size hints.
738
739 'remove_disabled_monitors'::
740         Consider disabled monitors as disconnected.
741
742 'remove_unplugged_monitors'::
743         Remove unplugged monitors.
744
745 'merge_overlapping_monitors'::
746         Merge overlapping monitors (the bigger remains).
747
748 Monitor and Desktop Settings
749 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
750
751 'top_padding'::
752 'right_padding'::
753 'bottom_padding'::
754 'left_padding'::
755         Padding space added at the sides of the monitor or desktop.
756
757 Desktop Settings
758 ~~~~~~~~~~~~~~~~
759
760 'window_gap'::
761         Size of the gap that separates windows.
762
763 Node Settings
764 ~~~~~~~~~~~~~
765
766 'border_width'::
767         Window border width.
768
769 Pointer Bindings
770 ----------------
771
772 'click_to_focus'::
773         Focus the window (or the monitor) under the pointer if the value isn't *none*.
774
775 'pointer_modifier' + 'button1'::
776         Move the window under the pointer.
777
778 'pointer_modifier' + 'button2'::
779         Resize the window under the pointer by dragging the nearest side.
780
781 'pointer_modifier' + 'button3'::
782         Resize the window under the pointer by dragging the nearest corner.
783
784 The behavior of 'pointer_modifier' + 'button<n>' can be modified through the 'pointer_action<n>' setting.
785
786 Events
787 ------
788
789 'report'::
790         See the next section for the description of the format.
791
792 'monitor_add <monitor_id> <monitor_name> <monitor_geometry>'::
793         A monitor is added.
794
795 'monitor_rename <monitor_id> <old_name> <new_name>'::
796         A monitor is renamed.
797
798 'monitor_remove <monitor_id>'::
799         A monitor is removed.
800
801 'monitor_swap <src_monitor_id> <dst_monitor_id>'::
802         A monitor is swapped.
803
804 'monitor_focus <monitor_id>'::
805         A monitor is focused.
806
807 'monitor_geometry <monitor_id> <monitor_geometry>'::
808         The geometry of a monitor changed.
809
810 'desktop_add <monitor_id> <desktop_id> <desktop_name>'::
811         A desktop is added.
812
813 'desktop_rename <monitor_id> <desktop_id> <old_name> <new_name>'::
814         A desktop is renamed.
815
816 'desktop_remove <monitor_id> <desktop_id>'::
817         A desktop is removed.
818
819 'desktop_swap <src_monitor_id> <src_desktop_id> <dst_monitor_id> <dst_desktop_id>'::
820         A desktop is swapped.
821
822 'desktop_transfer <src_monitor_id> <src_desktop_id> <dst_monitor_id>'::
823         A desktop is transferred.
824
825 'desktop_focus <monitor_id> <desktop_id>'::
826         A desktop is focused.
827
828 'desktop_activate <monitor_id> <desktop_id>'::
829         A desktop is activated.
830
831 'desktop_layout <monitor_id> <desktop_id> tiled|monocle'::
832         The layout of a desktop changed.
833
834 'node_add <monitor_id> <desktop_id> <ip_id> <node_id>'::
835         A node is added.
836
837 'node_remove <monitor_id> <desktop_id> <node_id>'::
838         A node is removed.
839
840 'node_swap <src_monitor_id> <src_desktop_id> <src_node_id> <dst_monitor_id> <dst_desktop_id> <dst_node_id>'::
841         A node is swapped.
842
843 'node_transfer <src_monitor_id> <src_desktop_id> <src_node_id> <dst_monitor_id> <dst_desktop_id> <dst_node_id>'::
844         A node is transferred.
845
846 'node_focus <monitor_id> <desktop_id> <node_id>'::
847         A node is focused.
848
849 'node_activate <monitor_id> <desktop_id> <node_id>'::
850         A node is activated.
851
852 'node_presel <monitor_id> <desktop_id> <node_id> (dir DIR|ratio RATIO|cancel)'::
853         A node is preselected.
854
855 'node_stack <node_id_1> below|above <node_id_2>'::
856         A node is stacked below or above another node.
857
858 'node_geometry <monitor_id> <desktop_id> <node_id> <node_geometry>'::
859         The geometry of a window changed.
860
861 'node_state <monitor_id> <desktop_id> <node_id> tiled|pseudo_tiled|floating|fullscreen on|off'::
862         The state of a window changed.
863
864 'node_flag <monitor_id> <desktop_id> <node_id> hidden|sticky|private|locked|marked|urgent on|off'::
865         One of the flags of a node changed.
866
867 'node_layer <monitor_id> <desktop_id> <node_id> below|normal|above'::
868         The layer of a window changed.
869
870 'pointer_action <monitor_id> <desktop_id> <node_id> move|resize_corner|resize_side begin|end'::
871         A pointer action occured.
872
873 Please note that *bspwm* initializes monitors before it reads messages on its socket, therefore the initial monitor events can't be received.
874
875 Report Format
876 -------------
877
878 Each report event message is composed of items separated by colons.
879
880 Each item has the form '<type><value>' where '<type>' is the first character of the item.
881
882 'M<monitor_name>'::
883         Focused monitor.
884
885 'm<monitor_name>'::
886         Unfocused monitor.
887
888 'O<desktop_name>'::
889         Occupied focused desktop.
890
891 'o<desktop_name>'::
892         Occupied unfocused desktop.
893
894 'F<desktop_name>'::
895         Free focused desktop.
896
897 'f<desktop_name>'::
898         Free unfocused desktop.
899
900 'U<desktop_name>'::
901         Urgent focused desktop.
902
903 'u<desktop_name>'::
904         Urgent unfocused desktop.
905
906 'L(T|M)'::
907         Layout of the focused desktop of a monitor.
908
909 'T(T|P|F|=|@)'::
910         State of the focused node of a focused desktop.
911
912 'G(S?P?L?)'::
913         Active flags of the focused node of a focused desktop.
914
915 Environment Variables
916 ---------------------
917
918 'BSPWM_SOCKET'::
919         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'.
920
921 Contributors
922 ------------
923
924 * Steven Allen <steven at stebalien.com>
925 * Thomas Adam <thomas at xteddy.org>
926 * Ivan Kanakarakis <ivan.kanak at gmail.com>
927
928 Author
929 ------
930
931 Bastien Dejean <nihilhill at gmail.com>