CKK

Automating macOS preferences

By Can Kutlu Kınay on March 18, 2025

Keyboard shortcuts

I like to customize macOS keyboard shortcuts to speed up my workflows. Here are some of the shortcuts I use:

My goal is to learn how to automate these settings so I can make part of these my dotfiles repo (which also needs maintenance).

Zoom

TODO: Add code to automate

Prevent accidental closing of Safari

defaults write \
	com.apple.Safari \
	NSUserKeyEquivalents -\
	dict-add "Quit Safari" "@\$q"

This needs full disk access as sandboxed apps are not accessible directly. I needed to add iterm (my terminal) to the list of apps that have full disk access.

References and Other Resources