1 ![logo](https://github.com/baskerville/bspwm/raw/master/resources/bspwm_logo.png)
5 `bspwm` is a tiling window manager based on binary space partitioning.
7 The windows are represented as the leaves of a binary tree.
11 `bspwm` have only two sources of informations: the X events it receives and the messages it reads on a dedicated socket.
13 Those messages are sent through the `bspc` program.
15 If the `BSPWM_SOCKET` environment variable is defined, it will be used as the socket path, otherwise `/tmp/bspwm-socket` is used.
17 The recommended way of defining keyboard shortcuts is to use `xbindkeys`.
19 The only way to configure `bspwm` is by sending *set* messages via the client, hence `bspwm`'s configuration file is an executable called `autostart` which lives in `$XDG_CONFIG_HOME/bspwm/`.
21 Example configurations: [autostart](https://github.com/baskerville/bin/blob/master/bspwm_autostart) and [xbindkeysrc](https://github.com/baskerville/dotfiles/blob/master/xbindkeysrc).
25 There is only two splitting modes: *automatic* and *manual*.
27 The default mode is *automatic*. The *manual* mode is entered by sending a *presel* message.
29 Example: insertion of a new node (number 4) into the given tree in
39 +-------------------------+ +-------------------------+
43 | 3 |------------| --> | 4 |------------|
47 +-------------------------+ +-------------------------+
49 Same departure, but the mode is *manual*, and a `presel up` message
58 +-------------------------+ +-------------------------+
62 | 3 |------------| --> |------------|------------|
66 +-------------------------+ +-------------------------+
70 The syntax for the client is `bspc COMMAND ARGUMENTS ...`.
72 The following messages are handled:
75 Return the value of the given setting.
78 Set the value of the given setting.
81 Output the internal representation of the window tree.
83 list_desktops [--quiet]
84 Perform a dump of each desktop for the current monitor.
86 list_monitors [--quiet]
87 Perform a dump of each monitor.
90 Return the list of managed windows (i.e. their identifiers).
92 presel left|right|up|down
93 Switch to manual mode and select the splitting direction.
96 Switch to automatic mode.
99 Set the splitting ratio of the focused window.
101 focus left|right|up|down
102 Focus the neighbor window situated in the given direction.
104 shift left|right|up|down
105 Exchange the current window with the given neighbor.
107 push left|right|up|down
108 Push the fence located in the given direction.
110 pull left|right|up|down
111 Pull the fence located in the given direction.
113 cycle next|prev [--skip-floating|--skip-tiled|--skip-class-equal|--skip-class-differ]
114 Focus the next or previous window matching the given constraints.
116 nearest older|newer [--skip-floating|--skip-tiled|--skip-class-equal|--skip-class-differ]
117 Focus the nearest window matching the given constraints.
120 Toggle the fullscreen state of the current window.
123 Toggle the floating state of the current window.
126 Toggle the locked state of the current window (locked windows will not respond to the 'close' command).
129 Close the focused window.
132 Kill the focused window.
135 Send the focused window to the given desktop.
137 send_to_monitor MONITOR_NAME
138 Send the focused window to the given monitor.
141 Select the given desktop.
143 use_monitor MONITOR_NAME
144 Select the given monitor.
147 Alternate between the current and the last focused window.
150 Alternate between the current and the last focused desktop.
153 Alternate between the current and the last focused monitor.
156 Make new desktops with the given names.
158 add_in MONITOR_NAME DESKTOP_NAME ...
159 Make new desktops with the given names in the given monitor.
161 rename_monitor CURRENT_NAME NEW_NAME
162 Rename the monitor named CURRENT_NAME to NEW_NAME.
164 rename CURRENT_NAME NEW_NAME
165 Rename the desktop named CURRENT_NAME to NEW_NAME.
167 cycle_monitor next|prev
168 Select the next or previous monitor.
170 cycle_desktop next|prev [--skip-free|--skip-occupied]
171 Select the next or previous desktop.
174 Set the layout of the current desktop.
177 Cycle the layout of the current desktop.
179 rotate clockwise|counter_clockwise|full_cycle
180 Rotate the tree of the current desktop.
182 magnetise top_left|top_right|bottom_left|bottom_right
183 Move all the fences toward the given corner.
185 rule PATTERN floating
186 Make a new rule that will float the windows whose class name or instance name equals PATTERN.
189 Reload the autostart file.
192 Reload the default settings.
195 Reload the autostart file and the default settings.
202 Colors are either [X color names](http://en.wikipedia.org/wiki/X11_color_names) or *#RRGGBB*, booleans are *true* or *false*.
205 Color of the main border of a focused window of a focused monitor.
208 Color of the main border of a focused window of an unfocused monitor.
211 Color of the main border of an unfocused window.
214 Color of the inner border of a window.
217 Color of the outer border of a window.
220 Color of the *presel* message feedback.
222 focused_locked_border_color
223 Color of the main border of a focused locked window of a focused monitor.
225 active_locked_border_color
226 Color of the main border of a focused locked window of an unfocused monitor.
228 normal_locked_border_color
229 Color of the main border of an unfocused locked window.
232 Color of the border of an urgent window.
237 Width of the inner, main and outer borders.
240 Value of the gap that separates windows.
246 Padding space added at the sides of the screen.
249 The value that shall be used for the _NET_WM_NAME property of the root window.
252 The modifier mask used for mouse bindings (possible values: 'mod1' ... 'mod5').
255 Whether to remove borders for tiled windows in monocle mode.
258 Wether to focus the window under the mouse pointer.
262 button_modifier + left mouse button
263 Move the window under the pointer.
265 button_modifier + middle mouse button
266 Focus the window under the pointer.
268 button_modifier + right mouse button
269 Resize the window under the pointer (by moving one of its four corners).
273 - Configured and controlled through messages
274 - Multiple monitors support (via *Xinerama*)
275 - EWMH support (`tint2` works)
276 - Automatic and manual modes
277 - Triple window borders
281 `dzen2` fed with the output of `ewmhstatus`. Example: [launchpanel](https://github.com/baskerville/bin/blob/master/launchpanel).
283 Or any EWMH compliant panel.
285 ## Required Libraries:
298 - [Ivan Kanakarakis](https://github.com/c00kiemon5ter)