3

I am looking for the keyboard shortcut to place the current window in half of the screen, either to the left or right. This functionality is performed in windows by typing the windows button plus left or right.

How is this done on Mac OSX?

6 Answers 6

3

Slate is an extremely customizable keyboard window management tool. It can take a while to get setup (although there are some example configs) but it's totally worth it.

Edit:

Slate has seemly abandoned at this point. I have switched to Phoenix which is very similar and more actively developed.

1

I use Divvy to perform keyboard manipulation of window size. There is a free demo so you can try before you buy.

1

If you want to build your own keyboard shortcut here is how you do it:

  1. Open Automator (Applications > Automator)
  2. Make a new Service
  3. In the search pane on the right search for "Applescript"
  4. Drag "Run Applescript" into the right Pane
  5. In the Text Box that is presented enter the following code:

    on run
        set theApp to ((path to frontmost application) as text)
        tell application theApp
            activate
            set the bounds of the first window to {0, 0, 1280, 800}
        end tell
    end run
    
  6. At the top of the right pane make it so that the service receives no input

  7. Save the service as "Maximise Window"
  8. Duplicate the Service (Command + Shift + S)
  9. Change the {0, 0, 1280, 800} to {0, 0, 640, 800}
  10. Save the service as "Move Window Left"
  11. Duplicate the Service (Command + Shift + S)
  12. Change the {0, 0, 640, 800} to {640, 0, 1280, 800}
  13. Save the service as "Move Window Right"
  14. Go to System Preferences (Applications > System Preferences) and select "Keyboard" then "Shortcuts"
  15. Scroll down in the list to "General"
  16. You services should be saved there. Hover over them then add your own shortcuts.

And Done!

0

As far as I know, this is not built into Mac OS X. But there are many third-party utilities such as Moom which can do it.

0

I would also add BetterTouchTool to those presented already - it gives you window snapping plus the ability to add all sorts of custom gestures and shortcuts to your environment

0

I tried ShiftIt it worked perfect and it's Open Source.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .