3 .\" Author: [see the "Author" section]
4 .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
6 .\" Manual: Bspwm Manual
10 .TH "BSPWM" "1" "07/29/2013" "Bspwm 0\&.7" "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 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 bspwm \- Tiling window manager based on binary space partitioning
34 \fBbspwm\fR [\fB\-h\fR|\fB\-v\fR|\fB\-c\fR \fICONFIG_PATH\fR|\fB\-s\fR \fIPANEL_FIFO\fR|\fB\-p\fR \fIPANEL_PREFIX\fR]
36 \fBbspc\fR \fICOMMAND\fR [\fIARGUMENTS\fR]
39 \fBbspwm\fR is a tiling window manager that represents windows as the leaves of a full binary tree\&.
41 It is controlled and configured via \fBbspc\fR\&.
46 Print the synopsis and exit\&.
51 Print the version and exit\&.
54 \fB\-c\fR \fICONFIG_PATH\fR
56 Use the given configuration file\&.
59 \fB\-s\fR \fIPANEL_FIFO\fR
61 Write the internal state to the given FIFO\&.
64 \fB\-p\fR \fIPANEL_PREFIX\fR
66 Start every line written to the
68 with the given prefix\&.
72 \fBbspwm\fR have only two sources of informations: the X events it receives and the messages it reads on a dedicated socket\&.
74 The default configuration file is \fI$XDG_CONFIG_HOME/bspwm/bspwmrc\fR\&.
76 Keyboard and pointer bindings are defined with sxhkd\&.
78 Example configuration files can be found in the \fBexamples\fR directory\&.
81 New windows are inserted in the tree as close as possible to the focused window\&.
83 There is only two splitting modes: \fIautomatic\fR and \fImanual\fR\&.
85 The default mode is \fIautomatic\fR\&. The \fImanual\fR mode is entered by sending a \fBpreselection\fR message\&.
87 Example: insertion of a new node (number 4) into the given tree in \fIautomatic\fR mode:
100 +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
104 | 3 |\-\-\-\-\-\-\-\-\-\-\-\-| \-\-> | 4 |\-\-\-\-\-\-\-\-\-\-\-\-|
108 +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
114 Same departure, but the mode is \fImanual\fR, and a \fBwindow \-\-presel up\fR message was sent beforehand:
126 +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
130 | 3 |\-\-\-\-\-\-\-\-\-\-\-\-| \-\-> |\-\-\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-\-\-|
134 +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
141 Each monitor contains at least one desktop\&.
143 Each desktop contains at most one tree\&.
144 .SH "COMMON DEFINITIONS"
150 DIR := left | right | up | down
151 CYCLE_DIR := next | prev
158 Selectors are used to select a target window, desktop, or monitor\&. A selector can either describe the target relatively or name it globally\&.
160 Descriptive (relative) selectors consist of a primary selector and any number of non\-conflicting modifiers as follows:
166 PRIMARY_SELECTOR[\&.MODIFIER]*
172 For obvious reasons, neither desktops nor monitors names may be valid descriptive selectors\&.
181 WINDOW_SEL := <window_id>
182 | (DIR|CYCLE_DIR|biggest|last|focused)[\&.floating|\&.tiled][\&.like|\&.unlike][\&.urgent|\&.nonurgent]
189 .nr an-no-space-flag 1
193 \fBPrimary Selectors\fR
198 Selects the window in the given (spacial) direction relative to the active window\&.
203 Selects the window in the given (cyclic) direction\&.
208 Selects the biggest window on the current desktop\&.
213 Selects the previously focused window on the current desktop\&.
218 Selects the currently focused window\&.
223 .nr an-no-space-flag 1
232 Only consider floating windows\&.
237 Only consider tiled windows\&.
242 Only consider windows that have the same class as the current window\&.
247 Only consider windows that have a different class than the current window\&.
252 Only consider windows in automatic splitting mode\&.
257 Only consider windows in manual splitting mode (see
263 Only consider urgent windows\&.
268 Only consider nonurgent windows\&.
279 DESKTOP_SEL := <desktop_name>
280 | (CYCLE_DIR|last|focused)[\&.occupied|\&.free][\&.urgent|\&.nonurgent]
287 .nr an-no-space-flag 1
291 \fBPrimary Selectors\fR
296 Selects the desktop in the given direction relative to the active desktop\&.
301 Selects the previously focused desktop\&.
306 Selects the currently focused desktop\&.
311 .nr an-no-space-flag 1
320 Only consider occupied desktops\&.
325 Only consider free desktops\&.
330 Only consider urgent desktops\&.
335 Only consider nonurgent desktops\&.
346 MONITOR_SEL := <monitor_name>
347 | (DIR|CYCLE_DIR|last|focused)[\&.occupied|\&.free]
354 .nr an-no-space-flag 1
358 \fBPrimary Selectors\fR
363 Selects the monitor in the given (spacial) direction relative to the active monitor\&.
368 Selects the monitor in the given (cyclic) direction relative to the active monitor\&.
373 Selects the previously focused monitor\&.
378 Selects the currently focused monitor\&.
383 .nr an-no-space-flag 1
392 Only consider monitors where the focused desktop is occupied\&.
397 Only consider monitors where the focused desktop is free\&.
404 .nr an-no-space-flag 1
411 window [\fIWINDOW_SEL\fR] \fIOPTIONS\fR
415 .nr an-no-space-flag 1
422 \fB\-f\fR, \fB\-\-focus\fR [\fIWINDOW_SEL\fR]
424 Focus the selected or given window\&.
427 \fB\-d\fR, \fB\-\-to\-desktop\fR \fIDESKTOP_SEL\fR
429 Send the selected window to the given desktop\&.
432 \fB\-m\fR, \fB\-\-to\-monitor\fR \fIMONITOR_SEL\fR
434 Send the selected window to the given monitor\&.
437 \fB\-w\fR, \fB\-\-to\-window\fR \fIWINDOW_SEL\fR
439 Transplant the selected window to the given window\&.
442 \fB\-s\fR, \fB\-\-swap\fR \fIWINDOW_SEL\fR
444 Swap the selected window with the given window\&.
447 \fB\-p\fR, \fB\-\-presel\fR \fIDIR\fR|cancel
449 Preselect the splitting area of the selected window (or cancel the preselection)\&.
452 \fB\-r\fR, \fB\-\-ratio\fR \fIRATIO\fR
454 Set the splitting ratio of the selected window (0 <
459 \fB\-e\fR, \fB\-\-edge\fR \fIDIR\fR \fIRATIO\fR|pull|push
461 Set the splitting ratio (or pull, or push) the edge located in the given direction in relation to the selected window\&.
464 \fB\-t\fR, \fB\-\-toggle\fR floating|fullscreen|locked[=on|off]
466 Set or toggle the given state for the selected window\&.
469 \fB\-c\fR, \fB\-\-close\fR
471 Close the selected window\&.
474 \fB\-k\fR, \fB\-\-kill\fR
476 Kill the selected window\&.
482 .nr an-no-space-flag 1
489 desktop [\fIDESKTOP_SEL\fR] \fIOPTIONS\fR
493 .nr an-no-space-flag 1
500 \fB\-f\fR, \fB\-\-focus\fR [\fIDESKTOP_SEL\fR]
502 Focus the selected or given desktop\&.
505 \fB\-m\fR, \fB\-\-to\-monitor\fR \fIMONITOR_SEL\fR
507 Send the selected desktop to the given monitor\&.
510 \fB\-l\fR, \fB\-\-layout\fR \fICYCLE_DIR\fR|monocle|tiled
512 Set or cycle the layout of the selected desktop\&.
515 \fB\-n\fR, \fB\-\-rename\fR <new_name>
517 Rename the selected desktop\&.
520 \fB\-r\fR, \fB\-\-remove\fR
522 Remove the selected desktop\&.
525 \fB\-c\fR, \fB\-\-cancel\-presel\fR
527 Cancel the preselection of all the windows of the selected desktop\&.
530 \fB\-F\fR, \fB\-\-flip\fR \fIhorizontal|vertical\fR
532 Flip the tree of the selected desktop\&.
535 \fB\-R\fR, \fB\-\-rotate\fR \fI90|270|180\fR
537 Rotate the tree of the selected desktop\&.
540 \fB\-B\fR, \fB\-\-balance\fR
542 Adjust the split ratios of the tree of the selected desktop so that all windows occupy the same area\&.
545 \fB\-C\fR, \fB\-\-circulate\fR forward|backward
547 Circulate the leaves of the tree of the selected desktop\&.
553 .nr an-no-space-flag 1
560 monitor [\fIMONITOR_SEL\fR] \fIOPTIONS\fR
564 .nr an-no-space-flag 1
571 \fB\-f\fR, \fB\-\-focus\fR [\fIMONITOR_SEL\fR]
573 Focus the selected or given monitor\&.
576 \fB\-a\fR, \fB\-\-add\-desktops\fR <name>\&...
578 Create desktops with the given names in the selected monitor\&.
581 \fB\-r\fR, \fB\-\-remove\-desktops\fR <name>\&...
583 Remove desktops with the given names\&.
586 \fB\-p\fR, \fB\-\-pad\fR <top> <right> <bottom> <left>
588 Set the padding of the selected monitor\&.
591 \fB\-n\fR, \fB\-\-rename\fR <new_name>
593 Rename the selected monitor\&.
599 .nr an-no-space-flag 1
610 .nr an-no-space-flag 1
617 \fB\-W\fR, \fB\-\-windows\fR
619 List matching windows\&.
622 \fB\-D\fR, \fB\-\-desktops\fR
624 List matching desktops\&.
627 \fB\-M\fR, \fB\-\-monitors\fR
629 List matching monitors\&.
632 \fB\-T\fR, \fB\-\-tree\fR
634 Print tree rooted at query\&.
637 \fB\-H\fR, \fB\-\-history\fR
639 Print the history as it relates to the query\&.
642 [\fB\-m\fR,\fB\-\-monitor\fR [\fIMONITOR_SEL\fR]] | [\fB\-d\fR,\fB\-\-desktop\fR [\fIDESKTOP_SEL\fR]] | [\fB\-w\fR, \fB\-\-window\fR [\fIWINDOW_SEL\fR]]
644 Constrain matches to the selected monitor, desktop or window\&.
650 .nr an-no-space-flag 1
657 restore \fIOPTIONS\fR
661 .nr an-no-space-flag 1
668 \fB\-T\fR, \fB\-\-tree\fR <file_path>
670 Load the desktop trees from the given file\&.
673 \fB\-H\fR, \fB\-\-history\fR <file_path>
675 Load the focus history from the given file\&.
681 .nr an-no-space-flag 1
688 control \fIOPTIONS\fR
692 .nr an-no-space-flag 1
699 \fB\-\-adopt\-orphans\fR
701 Manage all the unmanaged windows remaining from a previous session\&.
704 \fB\-\-put\-status\fR
706 Write the current internal state to the panel FIFO\&.
709 \fB\-\-toggle\-visibility\fR
711 Toggle the visibility of all the managed windows\&.
717 .nr an-no-space-flag 1
724 pointer \fIOPTIONS\fR
728 .nr an-no-space-flag 1
735 \fB\-t\fR, \fB\-\-track\fR <x> <y>
737 Pass the pointer root coordinates for the current pointer action\&.
740 \fB\-g\fR, \fB\-\-grab\fR focus|move|resize_side|resize_corner
742 Perform the given pointer action\&.
748 .nr an-no-space-flag 1
759 .nr an-no-space-flag 1
766 \fB\-a\fR, \fB\-\-add\fR <pattern> [\-d \fIDESKTOP_SEL\fR [\-\-follow]] [\-\-floating]
768 Create a new rule (<pattern> must match the class or instance name)\&.
771 \fB\-r\fR, \fB\-\-rm\fR <rule_uid>\&...
773 Remove the rules with the given UIDs\&.
776 \fB\-l\fR, \fB\-\-list\fR [<pattern>]
784 .nr an-no-space-flag 1
791 config <key> [<value>]
793 Get or set the value of <key>\&.
799 .nr an-no-space-flag 1
808 Quit with an optional exit status\&.
813 Colors are either X color names or \fI#RRGGBB\fR, booleans are \fItrue\fR or \fIfalse\fR\&.
815 All the boolean settings are \fIfalse\fR by default\&.
817 \fIfocused_border_color\fR
819 Color of the border of a focused window of a focused monitor\&.
822 \fIactive_border_color\fR
824 Color of the border of a focused window of an unfocused monitor\&.
827 \fInormal_border_color\fR
829 Color of the border of an unfocused window\&.
832 \fIpresel_border_color\fR
839 \fIfocused_locked_border_color\fR
841 Color of the border of a focused locked window of a focused monitor\&.
844 \fIactive_locked_border_color\fR
846 Color of the border of a focused locked window of an unfocused monitor\&.
849 \fInormal_locked_border_color\fR
851 Color of the border of an unfocused locked window\&.
854 \fIurgent_border_color\fR
856 Color of the border of an urgent window\&.
861 Window border width\&.
866 Value of the gap that separates windows\&.
871 Default split ratio\&.
876 The value that shall be used for the
878 property of the root window\&.
881 \fIborderless_monocle\fR
883 Remove borders for tiled windows in monocle mode\&.
886 \fIgapless_monocle\fR
888 Remove gaps for tiled windows in monocle mode\&.
891 \fIfocus_follows_pointer\fR
893 Focus the window under the pointer\&.
896 \fIpointer_follows_monitor\fR
898 When focusing a monitor, put the pointer at its center\&.
901 \fIadaptative_raise\fR
903 Prevent floating windows from being raised when they might cover other floating windows\&.
906 \fIapply_shadow_property\fR
908 Enable shadows for floating windows via the
909 \fI_COMPTON_SHADOW\fR
915 Interpret two consecutive identical
924 Interpret two consecutive identical
931 \fIhistory_aware_focus\fR
933 Give priority to the focus history when focusing nodes\&.
935 .SH "ENVIRONMENT VARIABLES"
939 The path of the socket used for the communication between
954 Any EWMH compliant panel (e\&.g\&.:
956 \fIbmpanel2\fR, etc\&.)\&.
967 A custom panel if the
969 flag is used (have a look at the files in
970 \fIexamples/panel\fR)\&.
982 Configured and controlled through messages\&.
993 Multiple monitors support (via
1005 EWMH support (\fBtint2\fR
1011 \h'-04'\(bu\h'+03'\c
1023 \h'-04'\(bu\h'+03'\c
1029 Steven Allen <steven at stebalien\&.com>
1034 \h'-04'\(bu\h'+03'\c
1040 Thomas Adam <thomas at xteddy\&.org>
1045 \h'-04'\(bu\h'+03'\c
1051 Ivan Kanakarakis <ivan\&.kanak at gmail\&.com>
1055 Bastien Dejean <baskerville at lavabit\&.com>
1058 bspwm at librelist\&.com