


That would resize the window to the top left corner and be 30% width of screen and 30% height of screen. Resize parameters look something like: 0 0. In addition to the default resize methods, you can also pass in custom resize parameters. You can also pass in custom sizes Custom Resize

Here are the available arguments that you can pass in: When run in terminal, it will resize your terminal since it resizes your active window, but you can use it with something like Keyboard Maestro or Launch Bar to make it more useful.
#BETTER WINDOW MANAGER DOWNLOAD#
To use layouts via command line, download layouts.scpt and then run osascript layouts.scpt. You can also create a hotkey for a custom resize. The recommended use of Layouts in Alfred is to set up global hotkeys.Īfter installing the workflow, you can click on the boxes in the workflow to define your own hotkeys for each of the layout options. If you don't use Alfred (you should), then you can use the raw AppleScript or use it with the command line. The easiest way to use layouts is with Alfred v2. You can pass 0 0 0.4 1 and 0.4 0 1 1 respectively to achieve that custom layout. For example, for web development, I have my browser 40% width on the left side of my screen and my terminal 60% width on the right side of my screen. It also lets you pass in custom coordinates so you can create your own layouts. Out of the box, it allows you to resize your active window to top half, right half, bottom half, left half, top left quarter, top right quarter, bottom right quarter, bottom left quarter, center window and zoom (full screen). Layouts is an AppleScript file and an Alfred Workflow to give you a lightweight window manager for your Mac.
