Leap Motion + Mission Control
This tweak integrates Leap Motion into Mission Control. It allows you to (physically) swipe between spaces seamlessly!
It works by injecting itself into Dock.app in the form of a ScriptingAddition.
The first step to build the project is to clone the repository:
git clone git://github.com/conradev/MotionControl.git
cd MotionControl
Next, you need to place the Leap SDK in the project folder. Assuming the Leap SDK disk image is mounted on your machine, run:
cp -r /Volumes/Leap/LeapSDK ./
Now you are ready to build the project! To build it, simply run the xcodebuild
command:
xcodebuild -project MotionControl.xcodeproj -target MotionControlLauncher -configuration Release
Installing is as simple as copying the launcher to your applications folder
sudo cp -r build/Release/MotionControl.app /Applications/
Simply run the application, it will prompt you for your password once, and MotionControl will be loaded.
It is recommended to add the Application as a Login Item, so it loads every time you log in.
To get MotionControl to initialize itself, you have to swipe from space to space once using the trackpad. I hope to rid of this requirement in the future.
Once that has been done, Dock.app will now be waiting for Leap Motion swipe gestures. Enjoy!
To uninstall MotionControl, you have to remove the following files:
/Applications/MotionControl.app
/Library/ScriptingAdditions/MotionControlHelper.osax