avoid checking the mouse everytime

This commit is contained in:
Morgan Wattiez 2019-08-16 14:52:59 +02:00
parent 69d4cca748
commit 22ca6abe94
4 changed files with 11 additions and 8 deletions

View File

@ -59,7 +59,6 @@ case "$(uname -s)" in
ln -snf ~/.config/Code/User/settings.json "~/Library/Application Support/Code/User/settings.json"
ln -snf "~/Library/Mobile Documents/com~apple~CloudDocs/Mackup/Library/Application Support/Code/User/snippets" "~/Library/Application Support/Code/User/snippets"
ln -snf "~/Library/Mobile Documents/com~apple~CloudDocs/Mackup/.mackup.cfg" ~/.mackup.cfg
echo 'Install Docker Desktop for Mac OS X'
~/.scripts/install_docker_for_mac.sh
;;
esac

View File

@ -2,4 +2,3 @@
scriptfile=./connectmouse.applescript
parentdir=$(dirname -- "$0")
osascript "${parentdir}/${scriptfile}"

View File

@ -110,3 +110,10 @@ function biggerthan() {
function cd() {
builtin cd "$@" && ls -latr
}
function mouse() {
case "$(uname -s)" in
Darwin)
sh ~/.scripts/mouse_bluetooth.sh
;;
esac
}

View File

@ -100,12 +100,10 @@ eval "$(fasd --init auto)"
istherenewissues
case "$(uname -s)" in
Darwin)
~/.scripts/install_docker_for_mac.sh
unlink "$HOME/Library/Application Support/Code/User/settings.json"
ln -s "$HOME/.config/Code/User/settings.json" "$HOME/Library/Application Support/Code/User/settings.json"
sh ~/.scripts/resume.sh
;;
Darwin)
unlink "$HOME/Library/Application Support/Code/User/settings.json"
ln -s "$HOME/.config/Code/User/settings.json" "$HOME/Library/Application Support/Code/User/settings.json"
;;
esac
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! https://github.com/sdkman/sdkman-cli/issues/613