The Apple Magic Mouse appears to work with Ubuntu so far, but only a couple multitouch functions seem to work. With the trackpad, there are lots of other functions with utouch. What I'd really like to do is map two-finger swipes to back/forward in a browser.
I have set up this and many other gestures with touchegg. Install it via:
Configurate touchegg via its configuration file located here:
Configuration for your desired gestures would be the following.
It's important to follow the last hint of the FAQ if you want to setup two or three finger gestures.
Create an executable shell script and fire it up on startup.
This deactivates the two and three finger taps and clicks of the synaptics driver as well as the two finger scrolling. If you want to keep the two finger tap to be the right mouse button click and the two finger scrolling you have to do it with touchegg as well.
I think the magic mouse reports itself as a trackpad as stated here.
I'm not sure this will work with Magic Mouse, but with Magic Trackpad I successfully used xSwipe to get browser back / forward navigation, workspace switch, Scale and Expo actions.
Have you tried touchegg? I was able to define some gestures on my MacBook's touchpad.
http://code.google.com/p/touchegg/
Easystroke Gesture Recognition can map a gesture to an aplication. you can findEasystroke Gesture Recognition in ubuntu software centre.
At the moment of writing this, mouse driver
hid-magicmouse
does not report two-finger swipe any differently than one-finger. So no application level solution is possible. You have to watch the development of kernel module. Magic Mouse is seen in system as a very basic mouse with two scrollwheels. It will not be detected by any touchpad software.On the contrary, Apple Magic Touch is seen as a very advanced touchpad and can be assigned many more functions than as in MacOS.