Problem

After months of tolerating the corruption of my perfectly balanced Binary Space Partitioned (BSP) layouts in tmux whenever I happened to temporarily create a split pane to pursue some context-dependent endeavor, I dedicated myself to safeguarding my BSP layouts once and for all by automating their restoration.

Solution

Thus I present to you my port of Niki Yoshiuchi’s dwindle and spiral layouts from dwm to tmux in the form of a POSIX shell script, listed below and available on GitHub, which surpasses dwm’s concept by letting you dwindle or spiral panes toward any corner while laying the main pane along any side of your tmux window.