

Close the multi-monitor instance (which causes the state to be saved). You can take advantage of applications which allow more than one instance to be open at a time, but only save state on close. Applications generally save their state (including window placement) when they close, and read it when they open, so if the second monitor is present at both of those times you should be fine.

Works great!īefore you unplug the monitor, close everything that's not entirely on the main monitor. Set up a key command in Quicksilver, and drag and drop your AppleScript from step 1 into the window as the action to perform. I chose to make it not visible in the Dock, and just run as a small taskbar daemon I'm a programmer and the above configuration is how I run my second monitor. You will need to customize which applications you want on your monitor and the window bounds the way you like them.
#Sizeup lock window position full
I keep all of my apps at full screen on all of my monitors, but you can change it to make them half or some other size: # Monitor AliasesĪlias mon-laptop 0 # variable for my laptop monitorĪlias hp-full move screenOriginX screenOriginY screenSizeX screenSizeY $ You can also define keyboard shortcuts for specific layouts and actions such as nudging and resizing windows by a certain percentage.īelow is my configuration file. But when you have a larger secondary monitor, you might want to split up your screen between your browser, mail, and music. For example, if you are using your laptop by itself, you might want to have all of your apps filling the whole screen.

One of the coolest things about Slate is that you can define different layouts based on how many monitors you have connected. You can define custom positions and sizes for all of your applications, including full screen, half screen, and grid-based. When you plug in your secondary monitor, it automatically detects the new monitor, and all of your windows will be moved and resized just the way you like them. Slate is a very powerful free Mac app that does exactly what you want.
