Created
December 11, 2014 14:12
-
-
Save mrdomino/62aaa31e16b2f8ff52b4 to your computer and use it in GitHub Desktop.
Run synergy
This file contains 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/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