Repository navigation
v0.0.28
Pre-release
Pre-release
This release simplifies command syntax, adds configuration reload, and improves recovery when macOS window or Space information is temporarily unavailable.
Breaking changes
- Space indexes now start at 1 across commands, query results, and the
SWM_SPACE_INDEXandSWM_RECENT_SPACE_INDEXsignal variables. Update scripts and bindings that use zero-based indexes. - Replace
config window-gapwithconfig gap. Replace the individual global padding commands and colon-separated Space padding withconfig paddingorspace paddingand--top,--bottom,--left, and--rightoptions. Omitted sides keep their current values. - For Space gaps, padding, master ratios, and window split ratios, replace
abs:andrel:prefixes with plain and signed numbers. For example,swm space gap 6sets the gap andswm space gap -2reduces it. Window move and resize commands retain their existingabs:andrel:syntax. - Window focus and swap take a positional target. Replace
focus --direction leftwithfocus left,cycle --direction nextwithfocus next,focus --window recentwithfocus recent,focus-masterwithfocus master,swap-cycle --direction nextwithswap next, andswap-with-masterwithswap master. Window warp directions are also positional. - Commands that change state no longer print
okon success. Errors use anError:prefix. Update scripts that inspect these messages. - Signal labels must be non-integer names. Rename numeric labels before registering them. Absolute master and split ratios outside
0.1through0.9are rejected; relative adjustments remain clamped.
Added
- Run
swm reloadto clear all rules and signals and execute the configuration file again without restarting the daemon. Settings omitted from the file keep their current values. For a custom configuration file, pass--config <path>explicitly. Rules and signals can also be cleared separately withswm rule clearandswm signal clear. - Read a global setting by omitting its value, such as
swm config gaporswm config padding.
Changed
- Query JSON is indented with sorted keys in a terminal and remains compact when piped.
- Command errors identify unknown subcommands and give more specific accepted values and examples. Animation easing and log levels support typed validation and completion.
Fixed
- Retry application discovery when WindowServer connections or recoverable Accessibility registration are unavailable, including during startup. Invalid connection IDs no longer reach window enumeration.
- Preserve layout state and Space settings while topology information is unavailable or incomplete, then reconcile when it recovers.
- Report window focus using the frontmost application's focused window rather than each application's main window. Unknown focus is reported as
null. - Preserve
!=and additional=characters inside signal actions and filter values. - Use consistent grid cell sizes and gaps for window commands and rule placement, including spans across multiple cells.
Requires macOS 26 or later. Building from source requires Swift 6.4 or later.