Check installation for the current version.

From v0.0.35 to v0.0.36 #

v0.0.36 removes signals. Remove every swm signal command from swmrc, key bindings, and other scripts before restarting the daemon. The add, list, remove, and clear commands no longer exist, and swm no longer runs shell actions on window, application, Space, or display events. There is no replacement event-action command.

A configuration that stops on errors, such as a shell script with set -e, fails when it reaches a removed command. A failed startup configuration stops the daemon; a failed reload keeps the previous rules and restores settings.

Restart the daemon after upgrading with brew services restart swm for a Homebrew service. Reload now replaces only rules; settings and rollback limits are unchanged.

From v0.0.34 to v0.0.35 #

v0.0.35 keeps the command syntax but changes the IPC format. Restart the daemon after upgrading so it matches the client. For a Homebrew service:

brew services restart swm

Do this before running swm reload or other commands. Reload cannot update the running daemon or make an older daemon compatible with the new client. Existing swmrc commands and key bindings need no syntax changes.

From v0.0.33 to v0.0.34 #

v0.0.34 keeps the command syntax. Restart the daemon after upgrading with brew services restart swm for a Homebrew service.

From v0.0.32 to v0.0.33 #

v0.0.33 keeps the v0.0.32 command syntax. Restart the daemon after upgrading:

brew services restart swm

Configuration reloads now keep existing rules and signals until the file succeeds, and restore settings on failure. Add set -e to shell configurations if a failed command should abort the reload. Window and Space moves are not rolled back.

Signals gained execution limits in v0.0.33, then were removed in v0.0.36. Remove signal commands when upgrading to the current release.

The daemon requests cancellation of commands after 4.5 seconds. Check the current state before retrying a timed-out command. Resize commands now reject a resulting width or height of zero or less.

From v0.0.31 to v0.0.32 #

v0.0.32 keeps the v0.0.31 command syntax. Restart the daemon after upgrading so the client and daemon use the same IPC format:

brew services restart swm

This version improves parsing of signed setting values with options and retries temporary Accessibility read failures before deciding whether a window can be tiled. Existing v0.0.31 scripts need no syntax changes.

From v0.0.30 to v0.0.31 #

v0.0.31 changed commands and arguments from v0.0.30. Apply the changes below to swmrc and your key bindings when upgrading from v0.0.30 to v0.0.36.

Move Space settings to config #

In v0.0.31, swm space only has activate. The layout, master-ratio, master-placement, split-ratio, preserve-split, padding, and gap subcommands move from space to config, and swm rejects their old swm space forms.

Pass --space current for the active Space, or --space <space-index> with a positive one-based index from swm query spaces. Indexes follow the current Space order and change when you reorder Spaces.

v0.0.30v0.0.31
swm space gap 8swm config gap --space current 8
swm space gap --space 2 +2swm config gap --space 2 +2
swm space gapswm config gap --space current
swm space padding --space 2 --top +4swm config padding --space 2 --top +4
swm space master-placement nextswm config master-placement --space current next
swm space preserve-split onswm config preserve-split --space current on

The same change applies to all seven settings. Keep --space current when you migrate a command that used to act on the active Space. Without --space, a command reads the global default, or changes every current Space and the default for future Spaces. With --space, it changes only that Space, and leaves other Spaces and future defaults alone.

Leave out the value to read the setting for the chosen scope. Signed gap, padding, and ratio changes start from that scope’s current value, and so do master-placement next and prev. Padding side flags win over the plain value for their side. With side flags alone, the other sides keep their values.

For dwindle, run swm config preserve-split --space current on before swm window toggle-split. For a window on another Space, pass that Space’s index instead. swm config split-ratio --space current 0.6 sets the ratio for new splits and rebalances existing splits on that Space. swm window split-ratio still changes a single split.

animation-duration, animation-easing, and focus-follows-mouse stay global and reject --space. swm space activate <space-index> does not change.

Move and resize arguments #

In v0.0.31, move and resize take two whole numbers in points. They move or resize relative to the current frame by default. Add --absolute to set the top-left position or the size instead. swm rejects the old abs:... and rel:... arguments.

swm window move [--window <window|recent>] [--absolute] <x> <y>
swm window resize [--window <window|recent>] [--absolute] <width> <height>
v0.0.30v0.0.31
swm window move abs:0:25swm window move --absolute 0 25
swm window move rel:-20:0swm window move -20 0
swm window resize abs:1200:800swm window resize --absolute 1200 800
swm window resize rel:40:0swm window resize 40 0

Negative values work on either axis without a -- separator, even mixed with window selection, as in swm window move -20 --window recent -10. Coordinate moves and resizes still reject tiled windows.

Grid arguments #

In v0.0.31, swm window grid takes six separate whole numbers instead of one colon-separated argument, and rejects the old form.

swm window grid [--window <window|recent>] <columns> <rows> <x> <y> <width> <height>
v0.0.30v0.0.31
swm window grid 2:1:0:0:1:1swm window grid 2 1 0 0 1 1
swm window grid 2:1:1:0:1:1swm window grid 2 1 1 0 1 1
swm window grid 1:1:0:0:1:1swm window grid 1 1 0 0 1 1

Columns and rows must be at least 1. x and y count cells from zero at the top left, and width and height count the cells to span. swm clamps x and y into the grid, then clamps each span to between one cell and the cells left on that axis. Negative values work without a -- separator.

Choose a window with --window as before, for example swm window grid --window recent 2 1 1 0 1 1. Grid placement still uses the configured padding and gaps and rejects tiled windows. Float a tiled window with swm window float on first, with the same --window when you target a specific window.

Rule properties keep the colon-separated form, such as grid=2:1:1:0:1:1.

Move windows between displays and Spaces #

In v0.0.31, swm window display and swm window space are gone. Use swm window move --display or swm window move --space instead:

v0.0.30v0.0.31
swm window display nextswm window move --display next
swm window display --window 123 2swm window move --window 123 --display 2
swm window space 3swm window move --space 3
swm window space --window recent prevswm window move --window recent --space prev

Each move does one thing. It takes two coordinates, --display <target>, or --space <target>, never more than one. The display and Space forms reject coordinates and --absolute. Both take a positive one-based index, next or prev. They move the focused window unless you pass --window with a window ID or recent.

Display indexes follow the arranged display list. Space indexes match swm query spaces, and cycling skips fullscreen Spaces and wraps through normal desktops. The current Space stays active. Unlike coordinate moves, these can move tiled windows into the destination layout. The existing display and Space move restrictions still apply, including the rule that a Space move must start and end on a normal desktop Space.

previous is no longer accepted for display or Space navigation. Use prev instead.

Rule properties such as display=2 and space=3 do not change.

Minimize and unminimize targets #

In v0.0.31, swm window minimize and swm window unminimize take the window as a positional argument instead of --window. Pass recent for the previously focused window, or a positive window ID. Without a target, minimize minimizes the focused window. unminimize needs a target, because a minimized window cannot have focus.

swm window minimize [<recent|window-id>]
swm window unminimize <recent|window-id>
v0.0.30v0.0.31
swm window minimize --window recentswm window minimize recent
swm window unminimize --window 123swm window unminimize 123

A bare swm window unminimize now fails. Both commands reject --window, directions, and zero or out-of-range IDs. Other window commands that take --window, including move, resize, and swap, keep it.

Dwindle size limits #

In v0.0.31 through v0.0.33, dwindle kept planned tile positions when an app refused a smaller size. v0.0.34 adjusts allocations around observed minimum sizes again, without changing configured split ratios or directions. See layout size limits.

Search docs

Enter a word or command.