Skip to content

Instantly share code, notes, and snippets.

@mrdomino
Created December 11, 2014 14:12
Show Gist options
  • Save mrdomino/62aaa31e16b2f8ff52b4 to your computer and use it in GitHub Desktop.
Save mrdomino/62aaa31e16b2f8ff52b4 to your computer and use it in GitHub Desktop.
Run synergy
#!/bin/sh
SERVER=stevens-mac-mini.local
SYNERGY_DIR="$HOME/.config/synergy"
function getpass {
cat "$SYNERGY_DIR/pass" | tr -d '\n' | md5sum | cut -d' ' -f1
}
trap 'xset r on' EXIT
xset r off
exec 0</dev/null 1>>"$SYNERGY_DIR/log" 2>&1
synergyc -f --crypto-pass $(getpass) ${SERVER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment