#<-dock-># OSX Dock helper monitors mouse to provide auto repositioning to left/right on multi-monitor systems.
Objective-C and Swift sources available, build defaults to Swift executable (slightly more RAM usage, ~1MB, but according Apple could execute more quickly than comparable Obj-C code).
##requirements## XCode Command Line Tools
##installation##
- Clone/fork the repo.
> git clone https://github.com/ohnnyj/dock.git
> cd dock
- Build it.
> make
####If you want to auto run on startup...####
- Copy executable.
> cp Build/Products/Release/\<-dock-\> /usr/local/bin/.
- Copy daemon plist. (LaunchAgents -> per user, LaunchDaemons -> computer)
> cp com.ohnnyj.dock.plist /Library/LaunchAgents/com.ohnnyj.dock.plist
- Add to launchctrl.
> launchctl load /Library/LaunchAgents/com.ohnnyj.dock.plist
Note: If you put the executable somewhere else (or rename it) you will need to modify the plist.