3

We all know there is a way to to switch between desktops using keyboard shortcuts, but can we create new ones using only the keyboard?

3

You can do it with some AppleScript. This will create a new desktop every time you run it:

tell application "System Events"
    do shell script "/Applications/Mission\\ Control.app/Contents/MacOS/Mission\\ Control"
    tell process "Dock"
        set countDesktops to count buttons of list 1 of group 1
        --new desktop
        click button 1 of group 1
        --switch to new desktop
        repeat until (count buttons of list 1 of group 1) = (countDesktops + 1)
        end repeat
        click button (countDesktops + 1) of list 1 of group 1
    end tell
end tell

You can save this as a Universal Service you can assign a globally-available shortcut key combination to call it.

Credit where credit is due.

3
  • Something that easy is not fair ;-) – klanomath Oct 8 '16 at 18:30
  • @klanomath you got an upvote from me for even attempting to do it without touching AppleScript! :D – Ian C. Oct 8 '16 at 18:31
  • ;-) I upvoted you also, presenting a really clean and easy Apple Script answer – klanomath Oct 8 '16 at 18:35
1

It is possible to create a new desktop space with the keyboard, but it's really cumbersome:

  • enable Mouse Key toggle (5 times alt) in System Preferences > Accesibility > Mouse & Trackpad > Options > enable "Press the Option key..."
  • hit F3
  • hit alt 5 times
  • move the cursor with the respective keys and navigate near the right upper corner
  • hit either i or 5 (depending on your keyboard)
  • hit alt 5 times
  • hit F3 and switch to the new space "with a keyboard shortcut".
-1

No, there isn't a way to create a new space with only the keyboard. You'd still need to use the mouse/trackpad to drag a window to the (+) desktop thumbnail in the top-right corner (or just click on it) to create a new space.

You must log in to answer this question.

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