]> git.somenet.org - pub/jan/scripts.git/blob - qsynergy.sh
workaround to start stuff in kde
[pub/jan/scripts.git] / qsynergy.sh
1 #!/bin/bash
2
3 if [[ "$(ip addr show | grep "inet " | grep "10\.11\.0\." | wc -l)" == "1" ]] ; then
4         sed -ie 's/^serverHostname=.*$/serverHostname=10.11.0.1/g' ./.config/Fidra/QSynergy.conf
5 elif [[ "$(ip addr show | grep "inet " | grep "128\." | wc -l)" == "1" ]] ; then
6         sed -ie 's/^serverHostname=.*$/serverHostname=193.170.74.102/g' ./.config/Fidra/QSynergy.conf
7 fi
8
9 qsynergy &
10