Skip to content

v0.0.28

Pre-release
Pre-release

Choose a tag to compare

@tombell tombell released this 28 Oct 11:27
· 132 commits to main since this 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_INDEX and SWM_RECENT_SPACE_INDEX signal variables. Update scripts and bindings that use zero-based indexes.
  • Replace config window-gap with config gap. Replace the individual global padding commands and colon-separated Space padding with config padding or space padding and --top, --bottom, --left, and --right options. Omitted sides keep their current values.
  • For Space gaps, padding, master ratios, and window split ratios, replace abs: and rel: prefixes with plain and signed numbers. For example, swm space gap 6 sets the gap and swm space gap -2 reduces it. Window move and resize commands retain their existing abs: and rel: syntax.
  • Window focus and swap take a positional target. Replace focus --direction left with focus left, cycle --direction next with focus next, focus --window recent with focus recent, focus-master with focus master, swap-cycle --direction next with swap next, and swap-with-master with swap master. Window warp directions are also positional.
  • Commands that change state no longer print ok on success. Errors use an Error: 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.1 through 0.9 are rejected; relative adjustments remain clamped.

Added

  • Run swm reload to 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 with swm rule clear and swm signal clear.
  • Read a global setting by omitting its value, such as swm config gap or swm 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.

Documentation · Full changelog