bspwm
More info
- Creator
- Bastien Dejean
- Released
- Type
- Window manager
- License
- BSD 2-Clause
- Source
- github.com/baskerville/bspwm
A tiling window manager in which the screen is a binary tree and every new window splits the focused leaf, driven entirely from outside through the bspc command.
Bastien Dejean wrote bspwm in 2012, in C on top of XCB, and gave it exactly one job. Each desktop is a full binary tree: the internal nodes are splits, vertical or horizontal, and the leaves are windows. A new window divides the focused leaf in two, and sizes follow the split ratios in the tree rather than a list of canned layouts as in dwm. If you want to decide in advance where the next window lands, you mark a side with a preselection arrow, and empty receptacles can be laid out as placeholders.
What stands out is what is missing. bspwm reads no key presses at all; bindings are handled by sxhkd, Dejean's separate hotkey daemon, which calls bspc, the command that talks to the window manager over a Unix socket. The configuration file, bspwmrc, is a shell script made of the same calls, and bspc subscribe streams events to a status bar such as polybar or lemonbar. The split makes bspwm easy to script and hard to make look finished without a handful of extra programs, which on r/unixporn counts as a feature.