Skip to content

Instantly share code, notes, and snippets.

@henrik
Created December 12, 2008 15:24
Show Gist options
  • Save henrik/35154 to your computer and use it in GitHub Desktop.
Save henrik/35154 to your computer and use it in GitHub Desktop.
#!/bin/bash
ssh hyper "osascript -e 'tell app \"iTunes\" to back track'"
#!/bin/bash
ssh hyper "osascript -e 'set volume output muted not (output muted of (get volume settings))'"
<?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">
<plist version="1.0">
<dict>
<key>Label</key>
<string>name.henriknyh.controlmaster</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/ssh</string>
<string>-MN</string>
<string>hyper</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardOutPath</key>
<string>/dev/null</string>
<key>StandardErrorPath</key>
<string>/dev/null</string>
</dict>
</plist>
#!/bin/bash
ssh hyper "osascript -e 'tell app \"iTunes\" to next track'"
#!/bin/bash
ssh hyper "osascript -e 'tell app \"iTunes\" to playpause'"
#!/bin/bash
ssh hyper "osascript -e 'set volume output volume (output volume of (get volume settings) - 7)'"
#!/bin/bash
ssh hyper "osascript -e 'set volume output volume (output volume of (get volume settings) + 7)'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment