This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Caps Lock → Backspace remapping using hidutil | |
| # Create the LaunchAgent directory if it doesn't exist | |
| mkdir -p ~/Library/LaunchAgents | |
| # Create the plist file | |
| cat > ~/Library/LaunchAgents/com.local.KeyRemapping.plist << 'EOF' | |
| <?xml version="1.0" encoding="UTF-8"?> |