Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.04 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.04 KB

#<-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##

  1. Clone/fork the repo.
> git clone https://github.com/ohnnyj/dock.git
> cd dock
  1. Build it.
> make

####If you want to auto run on startup...####

  1. Copy executable.
> cp Build/Products/Release/\<-dock-\> /usr/local/bin/.
  1. Copy daemon plist. (LaunchAgents -> per user, LaunchDaemons -> computer)
> cp com.ohnnyj.dock.plist /Library/LaunchAgents/com.ohnnyj.dock.plist
  1. 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.