Skip to content

About

Highly customizable shortcut-based window manager for macOS

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Latest commit

 

History

35 Commits

Folders and files

Repository files navigation

JV Window Manager

Highly customizable shortcut-based window manager for macOS

macOS 14+ Latest release License: MIT

JV Window Manager lives in the menu bar and moves or resizes the frontmost window with keyboard shortcuts. Position windows on their screen with Layouts, or nudge and grow them relative to where they already are with Actions. Every position is a small math expression, so you're not limited to a fixed grid.

Features

  • Layouts - snap the window into position relative to the visible frame of the screen it's on.
  • Actions — grow, shrink, or nudge the window relative to its own current frame. Hold the shortcut to repeat.
  • Expression-based configuration — every position and size is a small math expression (width / 2 + halfGap), with a live preview, an evaluated result next to each field, and variable chips you can click to insert.

Installation

  1. Download the latest build from the Releases page.
  2. Move JVWindowManager.app to /Applications.
  3. Launch it and grant Accessibility access when prompted (shortcuts won't move or resize windows until it's granted).

Requires macOS 14 Sonoma or later.

Layouts

Layouts define the window's new position and size relative to the screen's visible frame. Each side (top, bottom, left, right) is an inset expression: the distance from that edge of the screen to the new edge of the window.

Default layouts

Layout Default shortcut
Full screen control + option + return
Top half control + option +  ▲ 
Bottom half control + option +  ▼ 
Left half control + option +  ◀ 
Right half control + option +  ▶ 
Stage manager full screen control + option + shift + return

Custom layouts

Create your own from the Layouts tab: give it a name and a shortcut, then set the Top, Bottom, Left and Right expressions. You can start from a preset instead of writing expressions from scratch.

Variables available in layout expressions

Variable Description
width The width of the screen's visible frame
height The height of the screen's visible frame
padding The configured padding size
gap The configured gap size
halfGap Half the configured gap size
stageManager The configured stage manager size
step The configured step size

Expressions support +, -, *, / and parentheses.

Actions

While layouts are relative to the screen, actions are relative to the window's own current position and size. Each action expression sets the window's new width, height, and top-left position (x, y), evaluated from its current frame.

Default actions

Action Default shortcut
+ All sides control + option + command +  = 
+ Horizontal control + option + command +  D 
+ Vertical control + option + command +  W 
- All sides control + option + command +  – 
- Horizontal control + option + command +  A 
- Vertical control + option + command +  S 
Move up control + option + command +  ▲ 
Move down control + option + command +  ▼ 
Move left control + option + command +  ◀ 
Move right control + option + command +  ▶ 

Custom actions

Create your own from the Actions tab, the same way as layouts: name, shortcut, and Width, Height, X and Y expressions, with presets to start from.

Variables available in action expressions

Variable Description
width The current width of the window
height The current height of the window
originX The window's current left edge, from the screen's left edge
originY The window's current top edge, from the screen's top edge
padding The configured padding size
gap The configured gap size
halfGap Half the configured gap size
stageManager The configured stage manager size
step The configured step size

Expressions support +, -, *, / and parentheses.

Repeat while held

By default, holding an action's shortcut repeats it. Turn this off per action in its Advanced section.

Repeat profiles

A repeat profile is a named pace (initial delay and repeat interval) that any number of actions can share.

Profile Pace
System (default) Follows your system's Key Repeat and Delay Until Repeat
Fast 300 ms delay, 25 ms interval
Precise 500 ms delay, 100 ms interval, for careful positioning

Add your own profiles with a custom initial delay (100–1000 ms) and repeat interval (10–500 ms).

Screen bounds

Actions can be configured with how far they're allowed to push a window off-screen:

Option Behavior
Keep partly visible (default) The window can hang off an edge, but its title bar always stays grabbable on some screen.
Clamp to all screens The window can move between displays, but never past the outer edges of your setup.
Clamp to current screen The window stays fully inside the screen it started on.
No clamping The window is moved or resized exactly as configured, with no safety limits.

Settings

Setting Description Default value Range
Padding The space between the edge of the screen and the window's available space 16 0...50
Gap The space between windows 16 0...50
Stage manager The left margin for the stage manager, between the edge of the screen and the window's available space 180 0...250
Step A configurable size that can be used as a step size for repeating actions 8 0...200

Building from source

  1. Clone the repository.
  2. Open JVWindowManager.xcodeproj in Xcode.
  3. Build and run the JVWindowManager scheme.

Built with Defaults, KeyboardShortcuts, and LaunchAtLogin by Sindre Sorhus, and Expression by Nick Lockwood.

Maintainers cutting a new version should see RELEASING.md.

License

MIT © João Ghignatti

About

Highly customizable shortcut-based window manager for macOS

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages