Guide

Using your phone as a trackpad and keyboard for your Mac

Install Nightdesk on your Mac and your Android phone, pair them once, and the phone becomes the Mac’s trackpad and keyboard: a Mac trackpad’s gestures, the Mac’s keys above your phone’s keyboard, and typing with autocorrect and dictation. It shows you the Mac’s screen as well, or you can leave the picture off and use the phone as a pad and keys. Here’s the setup, what each gesture and key does, and the simpler apps if a pointer is all you need.

By Sheroze, who built Nightdesk · All guides

01Set it up

Three steps, about five minutes

  1. Install Nightdesk on the Mac

    Download it from the Mac page and drag it to Applications. It needs macOS 14 or later, on Apple silicon or Intel, and it’s free on the Mac. It sits in the menu bar and opens at login, so your phone can always find it.

  2. Allow Accessibility and Screen Recording

    Accessibility is the one that lets your phone move the pointer, click and type. Screen Recording sends the Mac’s screen to the phone. Nightdesk’s window lists both, one click each.

  3. Install the Android app and scan the code

    Get Nightdesk from Google Play (Android 12 or later) and scan the QR code in the Mac’s window, or tap your Mac under Nearby and type its 8-character code. There’s no account to make.

Once it links, the phone is already a trackpad: that’s how it starts. Nightdesk for iPhone and iPad, coming to the App Store, has the same trackpad, touch mode, keyboard and key bar.

02The trackpad

The gestures of a Mac trackpad

The phone’s whole screen is the trackpad, and it works like the one on a MacBook.

  • Point and click. One finger moves the pointer, and a quick flick goes farther than a slow slide. Tap to click, double-tap to double-click, and tap then drag (or long-press and drag) to select text or move a window.
  • Scroll and right-click. Two fingers scroll, with momentum, and a two-finger tap right-clicks. Pinch to zoom in on the picture; it sharpens to full detail as you go.
  • Spaces and Mission Control. Three fingers left or right switch Spaces, three up open Mission Control and three down show the app’s windows. Four fingers up, down, left and right give you the apps, the desktop and the next or previous tab.

Every three- and four-finger swipe and tap, and a pinch or spread with four or five fingers, can do something else instead: Settings › Touch & trackpad › Trackpad gestures. The pointer’s speed, the scroll direction and a small tick under your finger for each click are in the same place.

Two more ways to hold it. The Scroll switch in the dock makes one finger scroll like a mouse wheel, which is handy for reading a long page one-handed. Touch, from the Trackpad or Touch button in the dock, puts the pointer right where your finger lands. And on a foldable, half fold it like a laptop: the Mac’s screen sits on the top half and a trackpad fills the bottom.

A Mac’s Mission Control on a phone held sideways: a terminal, notes and a welcome window spread out.
Three fingers up: the Mac’s Mission Control, on a phone held sideways. A capture of the Android app.

03The keyboard

Typing, and the keys a phone doesn’t have

  • The key bar. Keyboard in the dock opens your phone’s own keyboard with a row of Mac keys above it: esc, tab, the arrows and ⌘ ⌥ ⌃ ⇧. Tap a modifier and it stays down for the next key; tap it twice to lock it. The arrows and delete repeat while you hold them.
  • Two ways to type. In Settings › Keyboard & shortcuts › Phone keyboard, Keys sends every key straight to the Mac with nothing autocorrected, which is best for Terminal and shortcuts. Text & dictation keeps your keyboard’s suggestions, autocorrect, glide typing and the mic, and only the corrected letters reach the Mac. Aa on the key bar switches between the two.
  • Write. For a whole paragraph, Write lets you type or dictate it on the phone first, then Type it, Paste or Send. It arrives on the Mac in one piece, which matters in a chat box or a terminal where Return sends. On Android now, coming to iPhone and iPad.
  • Your own keys. Shortcuts you make (a key combination, a piece of text or one of the Mac’s actions, each with an icon and a colour) sit on the key bar too.
  • Controls. The Mac’s volume, brightness, play and pause, Spotlight, screenshots and Notification Center, one tap each, from Controls in the dock.
  • A real keyboard and mouse. Pair a Bluetooth keyboard with the phone and ⌘Tab, ⌘Space and the rest go to the Mac. A mouse’s right, middle, back and forward buttons work as they do on the Mac.
Nightdesk’s Write panel on a phone, with a prompt asking the agent to add a test for a dropped USB camera.
Write: a paragraph typed or dictated on the phone, then sent in one piece. A capture of the Android app.

04With or without the screen

Seeing the Mac’s screen, or leaving it off

Nightdesk shows the Mac’s screen on the phone while you work it, so you can use a MacBook on the desk from the sofa without walking over to look. Pinch in and small text is sharp enough to read. Held upright, Screen in the dock › Phone screen gives the Mac a screen exactly your phone’s shape. It works on the same Wi-Fi and, through Nightdesk’s end-to-end encrypted relay, from anywhere.

When the Mac is on a screen you’re already looking at, like a Mac mini under the TV, you don’t need the picture on the phone. Control Deck can be a trackpad only, or a trackpad beside keys you choose, with Click and Right click buttons under the pad and a scroll strip along its edge. The picture pauses while it’s open, so the Mac stops sending video and both batteries last longer. Open it with Deck in the dock or from the ⋯ menu on the Mac’s card on Home, and Open in Control Deck makes that Mac open straight into it from then on.

Control Deck: on Android now, coming to iPhone and iPad.

05Other options

Other apps that turn a phone into a mouse and keyboard

Remote Mouse and Unified Remote are the ones most people find first. Both make a phone a mouse and keyboard, with a small app on the computer that they reach over your Wi-Fi, and both have free versions. Unified Remote also comes with remotes for lots of apps. There are Android apps, too, that make the phone a Bluetooth keyboard and mouse, with nothing to install on the Mac.

If a pointer and keys in the same room is all you want, one of those is simpler and can cost nothing. I’d pick Nightdesk when you also want to see the screen, when the Mac is somewhere else, or when you want a Mac trackpad’s gestures and the Mac’s own keys rather than a plain mouse.

What it looks like on an ordinary day

A living room at night: a large TV, a small silver computer beneath it, and hands on the couch holding a phone.

Run the Mac mini under the TV from the couch

Friday, 8 p.m.Sam, game developer

Sam’s Mac mini drives the living-room TV: films, the odd stream, and builds of his game on the big screen.

The wireless keyboard is never charged, and the trackpad is always in another room.

How

  1. His phone is the trackpad: slide to move, tap to click, two fingers to scroll.
  2. Controls has volume, play and pause, and Spotlight, one tap each. The key bar has ⌘ and the arrows.

Nothing to charge, and nothing to go looking for.

Live-code from the back of the lecture hall

Wednesday, 2:15 p.m.Javier, programming lecturer

Javier teaches from a MacBook on the lectern, plugged into the projector.

Every question from the back row means a walk to the front, and a class watching the back of his head while he types.

How

  1. He links his phone to the MacBook and walks the room. The phone is the trackpad: he scrolls the code on the projector to the line in question.
  2. Write types a whole snippet into the editor in one piece, and the key bar has ⌘, Tab and the arrows for the rest.

He answers each question from where it was asked.

A hand holding a phone by a rain-streaked train window, the city’s lights smeared into streaks.
Nightdesk’s Write panel with a long prompt typed in, and Type it, Paste and Send buttons.

Write a long prompt on the train and send it in one piece

7:52 a.m.Aisha, ML engineer

On the train into town, Aisha knows exactly what her agent should do today. It takes a paragraph to say.

Typed straight into a terminal, the first Enter sends half a thought.

How

  1. She opens Write and types the prompt with her phone’s own keyboard, or dictates it, autocorrect and all.
  2. She taps Send. It lands in the terminal on her desktop in one piece, and the agent starts.

By the time she sits down at work, the agent is well into it.

A wedding reception under string lights in the rain, a hand in a suit sleeve holding a phone low.

Run a failover script from a wedding

Saturday, 9:15 p.m.Ravi, on-call engineer

Ravi gets paged at his cousin’s wedding. The runbook says to run the failover script from a machine with production access.

That machine is his desktop at home, and a phone keyboard has no Ctrl or Esc.

How

  1. He steps under the awning and links to the desktop from his phone.
  2. The key bar puts Ctrl, Esc, Tab and the arrows above his keyboard. He runs the script and checks the dashboard.

Back inside before the cake.

Every use case

More guides

Try it on your own computer.

The Mac and Linux apps are free. On Android, everything is on for 3 days from your first link, with no card and no account, and after that it’s $4.99 a month or $57 once (US prices; Google Play shows yours). Nightdesk for iPhone and iPad is coming to the App Store.