Skip to content

Instantly share code, notes, and snippets.

@jamesthomasonjr
Last active March 18, 2020 14:01
Show Gist options
  • Save jamesthomasonjr/8f9f82728e56d47fd8e9bed35888c5ec to your computer and use it in GitHub Desktop.
Save jamesthomasonjr/8f9f82728e56d47fd8e9bed35888c5ec to your computer and use it in GitHub Desktop.
Launch Daemons
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
<dict>
<key>Comment</key>
<string>Citrus Soda! All of the caffeine with none of the yellow 5!</string>
</dict>
-->
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.jamesthomasonjr.citrussoda</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/env</string>
<string>caffeinate</string>
<string>-disu</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
<dict>
<key>Comment</key>
<string>LOST!? Stop yelling and start searching.</string>
</dict>
-->
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.jamesthomasonjr.lost</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/env</string>
<string>hdutil</string>
<string>property</string>
<string>--set</string>
<string>'{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x70000007E}]}'</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>LaunchOnlyOnce</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment