Skip to main content

Apply Custom App Icons

This setup supports applying custom macOS app icons based on a YAML mapping.

Preconditions

Files

Steps

,apply-app-icons

This will remove any existing custom icon and then set the new one.

Verification

  • Confirm the app icon changed in Finder/Dock.
  • Spot-check one mapped app exists:
ls -d "/Applications/<AppName>.app"
  • Re-run command and confirm no hard failure:
,apply-app-icons

Rollback / Undo

  • Remove custom icon for one app:
fileicon remove "/Applications/<AppName>.app"
  • Or remove/update the mapping entry, then rerun:
,apply-app-icons

Notes

home/app_icons/ is kept in the repo but ignored by chezmoi (home/.chezmoiignore). The script reads the mapping and assets from the repo source directory.