Spaces (Virtual Desktops)

Mission Control’s other star feature, Spaces, gives you up to 16 full-size monitors. Ordinarily, of course, attaching so many screens to a single computer would be a massively expensive proposition, not to mention detrimental to your living space and personal relationships.

Fortunately, Spaces monitors are virtual. They exist only in the Mac’s little head. You see only one at a time; you switch using Mission Control or a gesture.

But just because the Spaces screens are simulated doesn’t mean they’re not useful. You can dedicate each one to a different program or kind of program. Screen 1 might contain your email and chat windows, arranged just the way you like them. Screen 2 can hold Photoshop, with an open document and the palettes carefully arrayed. On Screen 3: your web browser in Full Screen mode.

You can also have the same program running on multiple screens—but with different documents or projects open on each one.

These desktops are also essential to OS X’s full-screen apps feature, because each full-screen app gets its own Spaces desktop.

Now, virtual screens aren’t a new idea—this sort of software has been available for years. But the Mac was the first to make it a standard feature of a consumer operating system. It’s still what most people would consider an advanced feature, and it’s definitely confusing at first. But it’ll be here when you’re ready for it.

Creating a Desktop

Mission Control generally starts you off with just one Space (or “desktop,” as it’s labeled)—the one you’ve been using all along. If you’ve clicked the button in an app to make it full screen, it fills an additional desktop unto itself.

To create another desktop, enter Mission Control. At the top edge of the screen, the gray strip—the Spaces bar—is the command center for creating, deleting, rearranging, and configuring your virtual desktops.

Note

To save space, the Spaces bar starts out as a very thin strip bearing only the names of your desktops (Figure 4-14, top). Move your cursor into this strip to expand it vertically, so that you can now see the actual thumbnail images of your desktops (Figure 4-14, bottom).

Once you’re in Mission Control, you can proceed in either of two ways:

  • The long way. See Figure 4-14 for the step-by-steps of clicking the button in the upper-right corner.

    Note

    If you’ve positioned your Dock against the right side of the screen, then the button appears when you point to the upper-left corner. And to create a new screen by dragging a window’s icon (see “The short way,” next), drag to the upper-left corner of the screen.

  • The short way. Drag one window thumbnail onto any blank spot on the Spaces bar. The Mac creates a new desktop to hold it.

Switching Spaces

Once you’ve got Spaces set up and turned on, the fun begins. Start by moving to the virtual screen you want; it’s like changing the channel. Here are some ways to do that:

  • Swipe horizontally on your trackpad with three fingers. (On the Magic Mouse, it’s two fingers.) If you have a trackpad or a Magic Mouse, this is definitely the method to learn; it’s fast, fluid, and happy.

    You can change this gesture so that it requires an additional finger, if you like, in System Preferences→Trackpad (or Mouse)→More Gestures.

    Tip

    If you perform this swipe slowly, you can drag the next Space only partway onto the screen. That’s sometimes handy when you want to get your bearings or to just peek into the next screen.

    Top: When you enter Mission Control, the Spaces bar is thin and collapsed.Middle: Click the button to create a new blank desktop, numbered sequentially.Bottom: Drag one of the window miniatures onto this new desktop. Or several.

    Figure 4-14. Top: When you enter Mission Control, the Spaces bar is thin and collapsed. Middle: Click the button to create a new blank desktop, numbered sequentially. Bottom: Drag one of the window miniatures onto this new desktop. Or several.

  • Enter Mission Control, and then click the desktop you want.

  • Press Control- or Control- to rotate to the previous or next desktop.

  • While pressing the Control key, type the number of the desktop you want. For example, hit Control-3 to jump to your third screen. (You have to turn on this feature first, though. See Figure 4-15.)

When you make a switch, you see a flash of animation as one screen flies away and another appears. Now that you’re “on” the screen you want, open programs and arrange windows onto it as usual.

Tip

What if you’re using Spaces, and you want to drag something from one screen (like a photo in Photos) into a window that’s on a different screen (like an outgoing email message)?

There are two ways; take your pick. First, you can start dragging whatever it is—and then, in mid-drag, press the keystroke for Mission Control (usually fn-F9); complete the drag directly onto the other Space, and even into the relevant window in that Space.

Another approach: Start dragging. With the mouse button still down, press ⌘-Tab to open the application switcher. Continue the drag onto the icon of the receiving program, and still keep the mouse button down. OS X switches to the appropriate virtual screen automatically.

To control Spaces from the keyboard, open →System Preferences→Keyboard. Click Keyboard Shortcuts and then Mission Control. As shown here, Apple has preassigned keyboard shortcuts to your various Spaces—but they’re not turned on yet. Turn on the checkboxes for the shortcuts you want. (You can change those shortcuts here, too.)

Figure 4-15. To control Spaces from the keyboard, open →System Preferences→Keyboard. Click Keyboard Shortcuts and then Mission Control. As shown here, Apple has preassigned keyboard shortcuts to your various Spaces—but they’re not turned on yet. Turn on the checkboxes for the shortcuts you want. (You can change those shortcuts here, too.)

Deleting a Desktop

To delete a desktop, enter Mission Control. Point to one of the screen thumbnails without clicking until a appears in its corner; click it. The desktop disappears, and whatever windows were on it get shoved onto Desktop #1, your main desktop.

Tip

If you don’t have the 1½ seconds to wait for the to appear, then press Option as you point. The Close button appears instantly.

In apps using Full Screen mode, the symbol is different; instead of , it looks like this: . When you click, the desktop flies off the Spaces bar into the main part of your screen. That app is now a plain-vanilla window thumbnail , just like all the others in Mission Control.

The Finer Points of Spaces

Yes, Spaces is an advanced feature. But there are actually advanced features within this advanced feature. For example:

  • Rearrange your Spaces. Open Mission Control, and then drag the Space thumbnails around horizontally.

    Note

    If you’ve decided to turn on the Dashboard as a Space, as described later in this chapter, you can even drag the Dashboard out of its traditional left-side position. Put it off to the right of the other Spaces, for all Apple cares.

  • Multiple monitors. If you have a second monitor connected to your Mac (or even several), each one can have its own set of Spaces.

    If “Displays have separate Spaces” is turned on in the Mission Control panel of System Preferences (Figure 4-13), then each monitor has its own set of Spaces. When you use one of the gestures or keystrokes for switching Spaces, you affect the Spaces on only one monitor: the one that contains your cursor at the moment.

  • Move a window to a different Space. Of course, you can always move a window to a different Space by dragging its tiny icon within Mission Control. But there are two faster ways.

    First, you can drag a window (using its title bar as a handle) all the way to the edge of the screen. Stay there with the mouse button still down. After about a second, the adjacent screen slides into view; you’ve just moved the window.

    Second, switch to the new Space. Hold your mouse down on the app’s Dock icon; from the shortcut menu, choose Options→Assign To→This Desktop. The Mac whisks that app’s windows from whatever other screen they’re on to this screen.

  • Move a window to all Spaces. Usually, you slap each app (or each window) onto only one Spaces desktop. Your web browser on Space 1. Email on Space 2. And so on.

    Sometimes, though, you might want one app’s windows on all your desktops—perhaps because you use it so often, you want it always with you. The Finder and System Preferences are great examples. Or maybe your calendar app, your browser, or your email program.

    To do that, hold the mouse button down on the program’s Dock icon until the shortcut menu appears. From this menu, choose Options→Assign To→All Desktops.

  • Wallpaper for every desktop. Coolly enough, though, you can set a different wallpaper photo (desktop photo) to each Space. You might find it easier to get your bearings that way. When you restart the computer, the Mac will remember not just which Spaces you had open and what was on them, but also what pictures lay behind them.

    You can go about assigning desktop pictures in two ways. First, switch to the Space whose picture you want to change. Then, either open System Preferences→Desktop & Screen Saver→Desktop, or right-click (or two-finger click) a blank spot on the existing desktop background, and choose Change Desktop Background.

    Note

    In both cases, you may have to move the System Preferences window onto your current Space. You can do that by popping into Mission Control.

    Either way, you wind up in the Preferences panel for choosing desktop wallpaper. Click the backdrop you want for this screen. Then switch to the next Space and repeat.

Get Switching to the Mac: The Missing Manual, El Capitan Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.