macOS: Disable Clipboard Sharing and Handoff in 1 Step
Disabling Handoff and clipboard sharing on macOS takes one Terminal command: `defaults write com.apple.coreservices.useractivityd ActivityAdvertisingAllowed -bool NO && defaults write com.apple.coreservices.useractivityd ActivityReceivingAllowed -bool NO`. Run it, then log out and back in for the changes to take effect.
For the life of me I can never remember where this sits in the settings, all I know is that it irritates me constantly 🙂
So to turn off handoff, run the script below:
# Turn off Handoff
defaults write ~/Library/Preferences/ByHost/com.apple.coreservices.useractivityd.plist ActivityAdvertisingAllowed -bool no
defaults write ~/Library/Preferences/ByHost/com.apple.coreservices.useractivityd.plist ActivityReceivingAllowed -bool no
# Restart sharingd
killall sharingd