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/16/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\-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\-s\fR \fIPANEL_FIFO\fR
56 Write the internal state to the given FIFO\&.
59 \fB\-p\fR \fIPANEL_PREFIX\fR
61 Start every line written to the
63 with the given prefix\&.
67 \fBbspwm\fR have only two sources of informations: the X events it receives and the messages it reads on a dedicated socket\&.
69 Its configuration file is \fI$XDG_CONFIG_HOME/bspwm/autostart\fR\&.
71 Keyboard and pointer bindings are defined with sxhkd\&.
73 Example configuration files can be found in the \fBexamples\fR directory\&.
76 New windows are inserted in the tree as close as possible to the focused window\&.
78 There is only two splitting modes: \fIautomatic\fR and \fImanual\fR\&.
80 The default mode is \fIautomatic\fR\&. The \fImanual\fR mode is entered by sending a \fBpreselection\fR message\&.
82 Example: insertion of a new node (number 4) into the given tree in \fIautomatic\fR mode:
95 +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
99 | 3 |\-\-\-\-\-\-\-\-\-\-\-\-| \-\-> | 4 |\-\-\-\-\-\-\-\-\-\-\-\-|
103 +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
109 Same departure, but the mode is \fImanual\fR, and a \fBwindow \-\-presel up\fR message was sent beforehand:
121 +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
125 | 3 |\-\-\-\-\-\-\-\-\-\-\-\-| \-\-> |\-\-\-\-\-\-\-\-\-\-\-\-|\-\-\-\-\-\-\-\-\-\-\-\-|
129 +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
136 Each monitor contains at least one desktop\&.
138 Each desktop contains at most one tree\&.
139 .SH "COMMON DEFINITIONS"
145 DIR := left | right | up | down
146 CYCLE_DIR := next | prev
153 Selectors are used to select a target window, desktop, or monitor\&. A selector can either describe the target relatively or name it globally\&.
155 Descriptive (relative) selectors consist of a primary selector and any number of non\-conflicting modifiers as follows:
161 PRIMARY_SELECTOR[\&.MODIFIER]*
167 For obvious reasons, neither desktops nor monitors names may be valid descriptive selectors\&.
176 WINDOW_SEL := <window_id>
177 | (DIR|CYCLE_DIR|biggest|last|focused)[\&.floating|\&.tiled][\&.like|\&.unlike]
184 .nr an-no-space-flag 1
188 \fBPrimary Selectors\fR
193 Selects the window in the given (spacial) direction relative to the active window\&.
198 Selects the window in the given (cyclic) direction\&.
203 Selects the biggest window on the current desktop\&.
208 Selects the previously focused window on the current desktop\&.
213 Selects the currently focused window\&.
218 .nr an-no-space-flag 1
227 Only consider floating windows\&.
232 Only consider tiled windows\&.
237 Only consider windows that have the same class as the current window\&.
242 Only consider windows that have a different class than the current window\&.
247 Only consider windows in automatic splitting mode\&.
252 Only consider windows in manual splitting mode (see
264 DESKTOP_SEL := <desktop_name>
265 | (CYCLE_DIR|last|focused)[\&.occupied|\&.free]
272 .nr an-no-space-flag 1
276 \fBPrimary Selectors\fR
281 Selects the desktop in the given direction relative to the active desktop\&.
286 Selects the previously focused desktop\&.
291 Selects the currently focused desktop\&.
296 .nr an-no-space-flag 1
305 Only consider occupied desktops\&.
310 Only consider free desktops\&.
321 MONITOR_SEL := <monitor_name>
322 | (DIR|CYCLE_DIR|last|focused)[\&.occupied|\&.free]
329 .nr an-no-space-flag 1
333 \fBPrimary Selectors\fR
338 Selects the monitor in the given (spacial) direction relative to the active monitor\&.
343 Selects the monitor in the given (cyclic) direction relative to the active monitor\&.
348 Selects the previously focused monitor\&.
353 Selects the currently focused monitor\&.
358 .nr an-no-space-flag 1
367 Only consider monitors where the focused desktop is occupied\&.
372 Only consider monitors where the focused desktop is free\&.
379 .nr an-no-space-flag 1
386 window [\fIWINDOW_SEL\fR] \fIOPTIONS\fR
390 .nr an-no-space-flag 1
397 \fB\-f\fR, \fB\-\-focus\fR [\fIWINDOW_SEL\fR]
399 Focus the selected or given window\&.
402 \fB\-d\fR, \fB\-\-to\-desktop\fR \fIDESKTOP_SEL\fR
404 Send the selected window to the given desktop\&.
407 \fB\-m\fR, \fB\-\-to\-monitor\fR \fIMONITOR_SEL\fR
409 Send the selected window to the given monitor\&.
412 \fB\-w\fR, \fB\-\-to\-window\fR \fIWINDOW_SEL\fR
414 Transplant the selected window to the given window\&.
417 \fB\-s\fR, \fB\-\-swap\fR \fIWINDOW_SEL\fR
419 Swap the selected window with the given window\&.
422 \fB\-p\fR, \fB\-\-presel\fR \fIDIR\fR|cancel
424 Preselect the splitting area of the selected window (or cancel the preselection)\&.
427 \fB\-r\fR, \fB\-\-ratio\fR \fIRATIO\fR
429 Set the splitting ratio of the selected window\&.
432 \fB\-e\fR, \fB\-\-edge\fR \fIDIR\fR \fIRATIO\fR|pull|push
434 Set the splitting ratio (or pull, or push) the edge located in the given direction in relation to the selected window\&.
437 \fB\-t\fR, \fB\-\-toggle\fR floating|fullscreen|locked[=on|off]
439 Set or toggle the given state for the selected window\&.
442 \fB\-c\fR, \fB\-\-close\fR
444 Close the selected window\&.
447 \fB\-k\fR, \fB\-\-kill\fR
449 Kill the selected window\&.
455 .nr an-no-space-flag 1
462 desktop [\fIDESKTOP_SEL\fR] \fIOPTIONS\fR
466 .nr an-no-space-flag 1
473 \fB\-f\fR, \fB\-\-focus\fR [\fIDESKTOP_SEL\fR]
475 Focus the selected or given desktop\&.
478 \fB\-m\fR, \fB\-\-to\-monitor\fR \fIMONITOR_SEL\fR
480 Send the selected desktop to the given monitor\&.
483 \fB\-l\fR, \fB\-\-layout\fR \fICYCLE_DIR\fR|monocle|tiled
485 Set or cycle the layout of the selected desktop\&.
488 \fB\-n\fR, \fB\-\-rename\fR <new_name>
490 Rename the selected desktop\&.
493 \fB\-r\fR, \fB\-\-remove\fR
495 Remove the selected desktop\&.
498 \fB\-c\fR, \fB\-\-cancel\-presel\fR
500 Cancel the preselection of all the windows of the selected desktop\&.
503 \fB\-F\fR, \fB\-\-flip\fR \fIhorizontal|vertical\fR
505 Flip the tree of the selected desktop\&.
508 \fB\-R\fR, \fB\-\-rotate\fR \fI90|270|180\fR
510 Rotate the tree of the selected desktop\&.
513 \fB\-B\fR, \fB\-\-balance\fR
515 Adjust the split ratios of the tree of the selected desktop so that all windows occupy the same area\&.
518 \fB\-C\fR, \fB\-\-circulate\fR forward|backward
520 Circulate the leaves of the tree of the selected desktop\&.
526 .nr an-no-space-flag 1
533 monitor [\fIMONITOR_SEL\fR] \fIOPTIONS\fR
537 .nr an-no-space-flag 1
544 \fB\-f\fR, \fB\-\-focus\fR [\fIMONITOR_SEL\fR]
546 Focus the selected or given monitor\&.
549 \fB\-a\fR, \fB\-\-add\-desktops\fR <name>\&...
551 Create desktops with the given names in the selected monitor\&.
554 \fB\-r\fR, \fB\-\-remove\-desktops\fR <name>\&...
556 Remove desktops with the given names\&.
559 \fB\-p\fR, \fB\-\-pad\fR <top> <right> <bottom> <left>
561 Set the padding of the selected monitor\&.
564 \fB\-n\fR, \fB\-\-rename\fR <new_name>
566 Rename the selected monitor\&.
572 .nr an-no-space-flag 1
583 .nr an-no-space-flag 1
590 \fB\-W\fR, \fB\-\-windows\fR
592 List matching windows\&.
595 \fB\-D\fR, \fB\-\-desktops\fR
597 List matching desktops\&.
600 \fB\-M\fR, \fB\-\-monitors\fR
602 List matching monitors\&.
605 \fB\-T\fR, \fB\-\-tree\fR
607 Print tree rooted at query\&.
610 \fB\-H\fR, \fB\-\-history\fR
612 Print the history as it relates to the query\&.
615 [\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]]
617 Constrain matches to the selected monitor, desktop or window\&.
623 .nr an-no-space-flag 1
630 restore \fIOPTIONS\fR
634 .nr an-no-space-flag 1
641 \fB\-T\fR, \fB\-\-tree\fR <file_path>
643 Load the desktop trees from the given file\&.
646 \fB\-H\fR, \fB\-\-history\fR <file_path>
648 Load the focus history from the given file\&.
654 .nr an-no-space-flag 1
661 control \fIOPTIONS\fR
665 .nr an-no-space-flag 1
672 \fB\-\-adopt\-orphans\fR
674 Manage all the unmanaged windows remaining from a previous session\&.
677 \fB\-\-put\-status\fR
679 Write the current internal state to the panel FIFO\&.
682 \fB\-\-toggle\-visibility\fR
684 Toggle the visibility of all the managed windows\&.
690 .nr an-no-space-flag 1
697 pointer \fIOPTIONS\fR
701 .nr an-no-space-flag 1
708 \fB\-t\fR, \fB\-\-track\fR <x> <y>
710 Pass the pointer root coordinates for the current pointer action\&.
713 \fB\-g\fR, \fB\-\-grab\fR focus|move|resize_side|resize_corner
715 Perform the given pointer action\&.
721 .nr an-no-space-flag 1
732 .nr an-no-space-flag 1
739 \fB\-a\fR, \fB\-\-add\fR <pattern> [\-d \fIDESKTOP_SEL\fR [\-\-follow]] [\-\-floating]
741 Create a new rule (<pattern> must match the class or instance name)\&.
744 \fB\-r\fR, \fB\-\-rm\fR <rule_uid>\&...
746 Remove the rules with the given UIDs\&.
749 \fB\-l\fR, \fB\-\-list\fR [<pattern>]
757 .nr an-no-space-flag 1
764 config <key> [<value>]
766 Get or set the value of <key>\&.
772 .nr an-no-space-flag 1
781 Quit with an optional exit status\&.
786 Colors are either X color names or \fI#RRGGBB\fR, booleans are \fItrue\fR or \fIfalse\fR\&.
788 All the boolean settings are \fIfalse\fR by default\&.
790 \fIfocused_border_color\fR
792 Color of the border of a focused window of a focused monitor\&.
795 \fIactive_border_color\fR
797 Color of the border of a focused window of an unfocused monitor\&.
800 \fInormal_border_color\fR
802 Color of the border of an unfocused window\&.
805 \fIpresel_border_color\fR
812 \fIfocused_locked_border_color\fR
814 Color of the border of a focused locked window of a focused monitor\&.
817 \fIactive_locked_border_color\fR
819 Color of the border of a focused locked window of an unfocused monitor\&.
822 \fInormal_locked_border_color\fR
824 Color of the border of an unfocused locked window\&.
827 \fIurgent_border_color\fR
829 Color of the border of an urgent window\&.
834 Window border width\&.
839 Value of the gap that separates windows\&.
844 Default split ratio\&.
849 The value that shall be used for the
851 property of the root window\&.
854 \fIborderless_monocle\fR
856 Remove borders for tiled windows in monocle mode\&.
859 \fIgapless_monocle\fR
861 Remove gaps for tiled windows in monocle mode\&.
864 \fIfocus_follows_pointer\fR
866 Focus the window under the pointer\&.
869 \fIpointer_follows_monitor\fR
871 When focusing a monitor, put the pointer at its center\&.
874 \fIadaptative_raise\fR
876 Prevent floating windows from being raised when they might cover other floating windows\&.
879 \fIapply_shadow_property\fR
881 Enable shadows for floating windows via the
882 \fI_COMPTON_SHADOW\fR
888 Interpret two consecutive identical
897 Interpret two consecutive identical
904 \fIhistory_aware_focus\fR
906 Give priority to the focus history when focusing nodes\&.
908 .SH "ENVIRONMENT VARIABLES"
912 The path of the socket used for the communication between
927 Any EWMH compliant panel (e\&.g\&.:
929 \fIbmpanel2\fR, etc\&.)\&.
940 A custom panel if the
942 flag is used (have a look at the files in
943 \fIexamples/panel\fR)\&.
955 Configured and controlled through messages\&.
966 Multiple monitors support (via
978 EWMH support (\fBtint2\fR
1002 Steven Allen <steven at stebalien\&.com>
1007 \h'-04'\(bu\h'+03'\c
1013 Thomas Adam <thomas at xteddy\&.org>
1018 \h'-04'\(bu\h'+03'\c
1024 Ivan Kanakarakis <ivan\&.kanak at gmail\&.com>
1028 Bastien Dejean <baskerville at lavabit\&.com>
1031 bspwm at librelist\&.com