brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Universal Clipboard lets you copy on your iPhone and paste on your Mac

Clipboard
~/tips/tip-macos-universal-clipboard

Command-C copy on the Mac

Copy text or an image on your iPhone and paste it straight into your Mac.

Mailing a link to yourself just to get it from your phone to your laptop is one of those habits I’d love to see disappear. Apple has had a fix for years: Universal Clipboard. You copy something on one device and paste it on another, with nothing in between.

There is no app and no menu for it. When the conditions are right, the normal copy on one device lands on the clipboard of the other. On the Mac side it’s the usual pair:

Command-C   copy on the Mac
Command-V   paste on the Mac

For an example, take a URL you have open in Safari on the iPhone. Copy it there, walk to the MacBook, click in the address bar of your browser and press Command-V. It works the other way round too: copy a command on the Mac and tap Paste on the iPhone.

The conditions are where it usually fails. Both devices need Wi-Fi, Bluetooth and Handoff turned on, both have to be signed in to the same Apple Account, and they have to be within about 10 meters of each other. On the Mac, Handoff sits in System Settings under General, then AirDrop & Continuity, as “Allow Handoff between this Mac and your iCloud devices”. On the iPhone it is under Settings, General, AirPlay & Continuity.

The caveat: the copied item only stays available for a short time, so copy and paste in one go. Apple also says it’s meant for text and images, not a folder full of files. For those I’d use AirDrop. And if it stops working out of nowhere, Apple’s own advice is a dull but honest one: restart both devices and try again.

Further reading: Copy and paste between devices (Mac User Guide), Use Universal Clipboard (Apple Support)

Going deeper: Guide: advanced tmux, a config that grows with you, formats, layouts and more

More Clipboard tips xclip -selection clipboard < ~/.ssh/id_ed25519.pub uname -r | wl-copy dir | clip "+p paste from the clipboard cat ~/.ssh/id_ed25519.pub | pbcopy All Clipboard tips (6) All topics

Link