]> git.lizzy.rs Git - bspwm.git/blob - bspwm.1
f5a0b1e9a547867ffe6dff75e413c0aaa87ef61e
[bspwm.git] / bspwm.1
1 .TH BSPWM 1 bspwm
2 .SH NAME
3 bspwm \- Tiling window manager based on binary space partitioning
4 .SH SYNOPSIS
5 .B bspwm
6 .RI [ -h | -v | "-s PANEL_FIFO" | "-p PANEL_PREFIX" ]
7 .P
8 .BI bspc " MESSAGE"
9 .RI [ ARGUMENTS ]
10 .RI [ OPTIONS ]
11 .SH DESCRIPTION
12 .B bspwm
13 is a tiling window manager where each window is represented as the leaf of a binary tree.
14 .P
15 It is controlled and configured via
16 .BR bspc .
17 .SH CONFIGURATION
18 .B bspwm
19 have only two sources of informations: the
20 .B X
21 events it receives and the messages it reads on a dedicated socket.
22 .P
23 Its configuration file is
24 .IR $XDG_CONFIG_HOME/bspwm/autostart .
25 .P
26 Keyboard and pointer bindings are defined through
27 .BR sxhkd .
28 .P
29 Example configuration files can be found in the
30 .I examples
31 directory.
32 .SH SPLITTING MODES
33 There is only two splitting modes:
34 .IR automatic " and " manual .
35 .P
36 The default mode is
37 .IR automatic .
38 The
39 .I manual
40 mode is entered by sending a
41 .B presel
42 message.
43 .P
44 Example: insertion of a new node (number 4) into the given tree in
45 .I automatic
46 mode:
47 .EX
48
49                  b                                   c
50                 / \\                                 / \\
51                3   a              -->              4   b
52                ^  / \\                              ^  / \\
53                  2   1                               3   a
54                                                         / \\
55                                                        2   1
56     +-------------------------+         +-------------------------+
57     |            |            |         |            |            |
58     |            |     2      |         |            |     3      |
59     |            |            |         |            |            |
60     |     3      |------------|   -->   |     4      |------------|
61     |     ^      |            |         |     ^      |     |      |
62     |            |     1      |         |            |  1  |  2   |
63     |            |            |         |            |     |      |
64     +-------------------------+         +-------------------------+
65
66 .EE
67 .P
68 Same departure, but the mode is
69 .IR manual ,
70 and a
71 .BI presel " up"
72 message was sent beforehand:
73 .EX
74
75                  b                                   b
76                 / \\                                 / \\
77                3   a              -->              c   a
78                ^  / \\                             / \\ / \\
79                  2   1                           4  3 2  1
80                                                  ^
81     +-------------------------+         +-------------------------+
82     |            |            |         |            |            |
83     |            |     2      |         |     4      |     2      |
84     |            |            |         |     ^      |            |
85     |     3      |------------|   -->   |------------|------------|
86     |     ^      |            |         |            |            |
87     |            |     1      |         |     3      |     1      |
88     |            |            |         |            |            |
89     +-------------------------+         +-------------------------+
90
91 .EE
92 .SH MESSAGES
93 .TP
94 .BI get " SETTING"
95 Return the value of the given setting.
96 .TP
97 .BI set " SETTING VALUE"
98 Set the value of the given setting.
99 .TP
100 .BI list " [DESKTOP_NAME]"
101 Output the internal representation of the window tree.
102 .TP
103 .BI list_desktops " [--quiet]"
104 Perform a dump of each desktop for the current monitor.
105 .TP
106 .BI list_monitors " [--quiet]"
107 Perform a dump of each monitor.
108 .TP
109 .BI list_history
110 Return the node focus history of each desktop.
111 .TP
112 .BI list_windows
113 Return the list of managed windows (i.e. their identifiers).
114 .TP
115 .BI list_rules
116 Return the list of rules.
117 .TP
118 .BI presel " left|right|up|down [SPLIT_RATIO]"
119 Switch to manual mode and select the splitting direction.
120 .TP
121 .BI cancel
122 Switch to automatic mode.
123 .TP
124 .BI ratio " VALUE"
125 Set the splitting ratio of the focused window.
126 .TP
127 .BI pad " MONITOR_NAME [TOP_PADDING [RIGHT_PADDING [BOTTOM_PADDING [LEFT_PADDING]]]]"
128 Set the padding of the given monitor.
129 .TP
130 .BI focus " left|right|up|down"
131 Focus the neighbor window situated in the given direction.
132 .TP
133 .BI shift " left|right|up|down"
134 Exchange the current window with the given neighbor.
135 .TP
136 .BI swap " [biggest|smallest]"
137 Swap the focused window with the biggest/smallest window or with the last focused window if no arguments are given.
138 .TP
139 .BI push " left|right|up|down"
140 Push the fence located in the given direction.
141 .TP
142 .BI pull " left|right|up|down"
143 Pull the fence located in the given direction.
144 .TP
145 .BI cycle " next|prev [--skip-floating|--skip-tiled|--skip-class-equal|--skip-class-differ]"
146 Focus the next or previous window matching the given constraints.
147 .TP
148 .BI nearest " older|newer [--skip-floating|--skip-tiled|--skip-class-equal|--skip-class-differ]"
149 Focus the nearest window matching the given constraints.
150 .TP
151 .BI circulate " forward|backward"
152 Circulate the leaves in the given direction.
153 .TP
154 .BI grab_pointer " focus|move|resize_side|resize_corner"
155 Begin the specified pointer action.
156 .TP
157 .BI track_pointer " ROOT_X ROOT_Y"
158 Pass the pointer root coordinates for the current pointer action.
159 .TP
160 .BI ungrab_pointer
161 End the current pointer action.
162 .TP
163 .BI toggle_fullscreen
164 Toggle the fullscreen state of the current window.
165 .TP
166 .BI toggle_floating
167 Toggle the floating state of the current window.
168 .TP
169 .BI toggle_locked
170 Toggle the locked state of the current window (locked windows will not respond to the
171 .B close
172 message).
173 .TP
174 .BI toggle_visibility
175 Toggle the visibility of all the managed windows.
176 .TP
177 .BI close
178 Close the focused window.
179 .TP
180 .BI kill
181 Kill the focused window.
182 .TP
183 .BI send_to " DESKTOP_NAME [--follow]"
184 Send the focused window to the given desktop.
185 .TP
186 .BI drop_to " next|prev [--follow]"
187 Send the focused window to the next or previous desktop.
188 .TP
189 .BI send_to_monitor " MONITOR_NAME [--follow]"
190 Send the focused window to the given monitor.
191 .TP
192 .BI drop_to_monitor " next|prev [--follow]"
193 Send the focused window to the next or previous monitor.
194 .TP
195 .BI use " DESKTOP_NAME"
196 Select the given desktop.
197 .TP
198 .BI use_monitor " MONITOR_NAME"
199 Select the given monitor.
200 .TP
201 .BI alternate
202 Alternate between the current and the last focused window.
203 .TP
204 .BI alternate_desktop
205 Alternate between the current and the last focused desktop.
206 .TP
207 .BI alternate_monitor
208 Alternate between the current and the last focused monitor.
209 .TP
210 .BI add " DESKTOP_NAME ..."
211 Make new desktops with the given names.
212 .TP
213 .BI add_in " MONITOR_NAME DESKTOP_NAME ..."
214 Make new desktops with the given names in the given monitor.
215 .TP
216 .BI rename_monitor " CURRENT_NAME NEW_NAME"
217 Rename the monitor named CURRENT_NAME to NEW_NAME.
218 .TP
219 .BI rename " CURRENT_NAME NEW_NAME"
220 Rename the desktop named CURRENT_NAME to NEW_NAME.
221 .TP
222 .BI cycle_monitor " next|prev"
223 Select the next or previous monitor.
224 .TP
225 .BI cycle_desktop " next|prev [--skip-free|--skip-occupied]"
226 Select the next or previous desktop.
227 .TP
228 .BI layout " monocle|tiled [DESKTOP_NAME ...]"
229 Set the layout of the given desktops (current if none given).
230 .TP
231 .BI cycle_layout
232 Cycle the layout of the current desktop.
233 .TP
234 .BI rotate " clockwise|counter_clockwise|full_cycle"
235 Rotate the window tree.
236 .TP
237 .BI flip " horizontal|vertical"
238 Flip the window tree.
239 .TP
240 .B balance
241 Adjust the split ratios so that all windows occupy the same area.
242 .TP
243 .BI rule " PATTERN [DESKTOP_NAME] [floating] [follow]"
244 Create a new rule (PATTERN must match the class or instance name).
245 .TP
246 .BI remove_rule " UID ..."
247 Remove the rules with the given UIDs.
248 .TP
249 .BI put_status
250 Output the current state to the panel fifo.
251 .TP
252 .BI adopt_orphans
253 Manage all the unmanaged windows remaining from a previous session.
254 .TP
255 .BI restore_layout " FILE_PATH"
256 Restore the layout of each desktop from the content of FILE_PATH.
257 .TP
258 .BI restore_history " FILE_PATH"
259 Restore the history of each desktop from the content of FILE_PATH.
260 .TP
261 .BI quit " [EXIT_STATUS]"
262 Quit.
263 .SH SETTINGS
264 Colors are either
265 .B X
266 color names (cf.
267 .I COLOR NAMES
268 in
269 .BR X (7))
270 or
271 .I #RRGGBB
272 , booleans are
273 .IR "true " "or " false .
274 .TP
275 .I focused_border_color
276 Color of the border of a focused window of a focused monitor.
277 .TP
278 .I active_border_color
279 Color of the border of a focused window of an unfocused monitor.
280 .TP
281 .I normal_border_color
282 Color of the border of an unfocused window.
283 .TP
284 .I presel_border_color
285 Color of the
286 .B presel
287 message feedback.
288 .TP
289 .I focused_locked_border_color
290 Color of the border of a focused locked window of a focused monitor.
291 .TP
292 .I active_locked_border_color
293 Color of the border of a focused locked window of an unfocused monitor.
294 .TP
295 .I normal_locked_border_color
296 Color of the border of an unfocused locked window.
297 .TP
298 .I urgent_border_color
299 Color of the border of an urgent window.
300 .TP
301 .I border_width
302 Window border width.
303 .TP
304 .I window_gap
305 Value of the gap that separates windows.
306 .TP
307 .I split_ratio
308 Default split ratio.
309 .TP
310 .I top_padding
311 .TQ
312 .I right_padding
313 .TQ
314 .I bottom_padding
315 .TQ
316 .I left_padding
317 Padding space added at the sides of the current monitor.
318 .TP
319 .I wm_name
320 The value that shall be used for the
321 .B _NET_WM_NAME
322 property of the root window.
323 .TP
324 .I borderless_monocle
325 Whether to remove borders for tiled windows in monocle mode.
326 .TP
327 .I gapless_monocle
328 Whether to remove gaps for tiled windows in monocle mode.
329 .TP
330 .I focus_follows_pointer
331 Whether to focus the window under the pointer.
332 .TP
333 .I adaptative_raise
334 Prevent floating windows from being raised when they might cover other floating windows.
335 .TP
336 .I apply_shadow_property
337 Enable shadows for floating windows via the
338 .B _COMPTON_SHADOW
339 property.
340 .TP
341 .I auto_alernate
342 Whether to interpret two consecutive identical
343 .B use
344 messages as an
345 .B alternate
346 message.
347 .TP
348 .I focus_by_distance
349 Whether to use window or leaf distance for focus movement.
350 .SH ENVIRONMENT VARIABLES
351 .TP
352 .I BSPWM_SOCKET
353 The path of the socket used for the communication between
354 .BR bspc " and " bspwm .
355 .SH AUTHOR
356 .EX
357 Bastien Dejean <baskerville at lavabit.com>
358 .SH CONTRIBUTORS
359 .EX
360 Ivan Kanakarakis <ivan.kanak at gmail.com>
361 Thomas Adam <thomas at xteddy.org>
362 .EE
363 .SH HOMEPAGE
364 .TP
365 https://github.com/baskerville/bspwm
366 .SH MAILING LIST
367 .TP
368 bspwm at librelist.com
369 .SH SEE ALSO
370 .BR monsterwm (1),
371 .BR tmux (1).