Skip to content

Instantly share code, notes, and snippets.

@tobscher
Created July 8, 2015 12:30
Show Gist options
  • Save tobscher/6dbdc92a504faff4546f to your computer and use it in GitHub Desktop.
Save tobscher/6dbdc92a504faff4546f to your computer and use it in GitHub Desktop.
Automatically enable press and hold on boot (OSX)

File location: ~/Library/LaunchAgents/org.tobiashaar.press_and_hold.plist Command to load: launchctl load

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.tobiashaar.press_and_hold</string>
<key>OnDemand</key>
<false/>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>defaults</string>
<string>write</string>
<string>-g</string>
<string>ApplePressAndHoldEnabled</string>
<string>-bool</string>
<string>true</string>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment