Snap windows to screen edges in OS X

I’ve been a fan of tiling window managers for a while now (especially XMonad which I’ve been using for years). But recently I started using Windows 7 again for the first time in years. Windows doesn’t have a tiling window manager per se, but if you drag a window to the left or right edge of the screen, it expands it to take up that half of the screen. Soon I realized that I mostly only need two windows open side-by-side (usually code and docs, or code and a terminal) and for that use case Windows’ snap-to-edges window management usually does the trick.

I’m still using a mix of OS X and Linux at home and I’ve been using the default OS X window manager so far. I have my Macbook Air connected to a larger external monitor which reduces the need to be careful with screen real estate. I didn’t really care about having a tiling window manager for OS X, but I was curious about having some kind of snap-to-edge functionality.

It turns out that OS X doesn’t come with anything of the sort out of the box, but there is a free utility that provides the needed functionality. BetterTouchTool is actually a very feature-packed program that provides a lot of control over mouse and trackpad input and window management. One feature that works out of the box is snap-to-edge support. Here’s a simple tutorial that shows you exactly what to do (it basically amounts to installing the tool and enabling it). And now you can snap windows to edges as much as your heart desires.

Remembering Aaron Swartz

Aaron Swartz was a programmer, entrepreneur and Internet activist who left his mark on both the Internet and the world at large. He was involved in the development of the RSS and Markdown formats as well as the Creative Commons. He was also the founder of Demand Progress which was involved in the effort to stop SOPA/PIPA.

Just over two years ago Aaron killed himself in the middle of a federal prosecution. If he had lived, Aaron would probably have become one of the leading technologists or political figures of our generation. Unfortunately, two years after his death, there is too much pain and suffering in the world today for the media (or the Internet in general) to remember his suicide. The only article about his death that caught my eye was a Boing Boing piece entitled “How to honor Aaron Swartz’s life”. The piece is written by one of Aaron’s friends and is best summarized as a short guide to honoring Aaron life by living your own better.

To summarize the summary:

  1. Stay curious
  2. Don’t accept things as they are, or assume they’re that way for a good reason
  3. Become good at something. And then use it to make a difference.
  4. Ask yourself what you could do to make the biggest difference in the world.
  5. Stay alive.

For me, one of the best lessons from the article was the ending paragraph:

Don’t be surprised if at some point in your life, maybe at many points, you find yourself submerged in a darkness that seems infinite and eternal. It might seem to you like it’s always been that way, it will be always be that way and there’s only one way out. You’re wrong. It will get better. But it will only get better if you find some way to survive.

Aaron might be gone, but much of his work is still with us, in terms of code, organizations, and words. His website is still online (hopefully it will stay that way indefinitely) and so is his writing. I remember reading much of his writing around the time of his death and found it both interesting and a joy to read. His series on thinking and living better — Raw Nerve — is a good place to start.