-![logo](https://github.com/baskerville/bspwm/raw/master/resources/bspwm_logo.png)
+![logo](https://github.com/baskerville/bspwm/raw/master/logo/bspwm-logo.png)
## Description
`bspwm` have only two sources of informations: the X events it receives and the messages it reads on a dedicated socket.
-Those messages are sent through the `bspc` program.
+Those messages are sent via `bspc`.
If the `BSPWM_SOCKET` environment variable is defined, it will be used as the socket path, otherwise `/tmp/bspwm-socket` is used.
## Messages
-The syntax for the client is `bspc COMMAND ARGUMENTS ...`.
+The syntax for the client is `bspc MESSAGE [ARGUMENTS ...]`.
The following messages are handled:
set SETTING VALUE
Set the value of the given setting.
- list
+ list [DESKTOP_NAME]
Output the internal representation of the window tree.
list_desktops [--quiet]
Set the splitting ratio of the focused window.
focus left|right|up|down
- Focus the neighbor window situated in the given direction.
+ Focus the neighbor window situated in the given direction.
shift left|right|up|down
- Exchange the current window with the given neighbor.
+ Exchange the current window with the given neighbor.
push left|right|up|down
Push the fence located in the given direction.
nearest older|newer [--skip-floating|--skip-tiled|--skip-class-equal|--skip-class-differ]
Focus the nearest window matching the given constraints.
+ circulate forward|backward
+ Circulate the leaves in the given direction.
+
toggle_fullscreen
Toggle the fullscreen state of the current window.
Toggle the floating state of the current window.
toggle_locked
- Toggle the locked state of the current window (locked windows will not respond to the 'close' command).
+ Toggle the locked state of the current window (locked windows will not respond to the 'close' message).
close
Close the focused window.
cycle_desktop next|prev [--skip-free|--skip-occupied]
Select the next or previous desktop.
-
- layout monocle|tiled
- Set the layout of the current desktop.
+
+ layout monocle|tiled [DESKTOP_NAME ...]
+ Set the layout of the given desktops (current if none given).
cycle_layout
Cycle the layout of the current desktop.
rotate clockwise|counter_clockwise|full_cycle
Rotate the tree of the current desktop.
- magnetise top_left|top_right|bottom_left|bottom_right
- Move all the fences toward the given corner.
+ rule PATTERN [DESKTOP_NAME] [floating]
+ Create a new rule (PATTERN must match the class or instance name).
- rule PATTERN floating
- Make a new rule that will float the windows whose class name or instance name equals PATTERN.
+ adopt_orphans
+ Manage all the unmanaged windows remaining from a previous session.
reload_autostart
Reload the autostart file.
normal_border_color
Color of the main border of an unfocused window.
-
+
inner_border_color
Color of the inner border of a window.
outer_border_color
Color of the outer border of a window.
-
+
presel_border_color
Color of the *presel* message feedback.
The value that shall be used for the _NET_WM_NAME property of the root window.
button_modifier
- The modifier mask used for mouse bindings (possible values: 'mod1' ... 'mod5').
+ The modifier mask used for mouse bindings (possible values: 'shift', 'control', 'lock', 'mod1' ... 'mod5').
- borderless_monocle
+ numlock_modifier
+ The modifier holding Num_Lock (cf. xmodmap).
+
+ capslock_modifier
+ The modifier holding Lock.
+
+ borderless_monocle
Whether to remove borders for tiled windows in monocle mode.
+ gapless_monocle
+ Whether to remove gaps for tiled windows in monocle mode.
+
focus_follows_mouse
Wether to focus the window under the mouse pointer.