- Make files executable by running
chmod +x switch-to-mouse.command switch-to-trackpad.command
- Add aliases to shell config (e.g.,
.zshrc)
OR
- Drag .command files into the Dock for 1-click switching
- Copy an icon image (.icns or other icon format). There are example icons in the
iconsfolder. - Right-click the .command file in Finder and select Get Info.
- Click the small icon in the top-left corner of the Info window to select it.
- Paste (Cmd+V) the copied image over the icon.