Skip to content

Cubicle 0.3.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@sam-phinizy sam-phinizy released this 11 Nov 16:26

Window snapping

Cubicle can now move and resize windows the way Rectangle does: left, right, top and bottom half, the four quarters,
Maximize (fills the screen apart from the menu bar and Dock), Center, and Restore (back to where the window was before
you first snapped it).

  • Shortcuts. Rectangle's keys: ⌃⌥ + arrows for halves, ⌃⌥U / I / J / K for quarters, ⌃⌥↩ Maximize, ⌃⌥C Center,
    ⌃⌥⌫ Restore. They're off by default so they don't take over keys you use elsewhere. Turn them all on with one switch
    in Settings → Keyboard Shortcuts or in the welcome walkthrough, and change any of them there.
  • The window menu. ⌃⌥⌘-click a window: below the Spaces there's now a Snap section for that window.
  • Command line. cubicle snap left-half snaps the focused window. --app Safari picks another app's front
    window, --window <id> a particular window, and --previous the app you were in before. cubicle windows lists
    the windows on this Space and their ids (--json too), and cubicle actions lists the snap names.
  • Alfred. Type w and a command, like w left, w top right or w max. It snaps the window you were in before
    Alfred opened. Re-import the workflow to get it.
  • Gap. Settings → General → Snap gap (or cubicle gap 8) leaves a gap between snapped windows and around the
    screen edges. It's 0 by default.

Pressing a snap again does nothing. Windows that won't resize to fit are lined up against the screen edges instead.
Full-screen and minimized windows are left alone.