Created
January 15, 2011 20:56
-
-
Save creaktive/781243 to your computer and use it in GitHub Desktop.
Apple Magic Mouse @ Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo hidd --connect C4:2C:03:99:6D:53 | |
sleep 1 | |
sudo bash -c 'echo Y > /sys/module/hid_magicmouse/parameters/scroll_acceleration' | |
sudo bash -c 'echo 40 > /sys/module/hid_magicmouse/parameters/scroll_speed' | |
ID=`xinput list --short | grep -i 'mouse' | cut -f2 | cut -c4-` | |
#xinput list-props $ID | |
xinput --set-prop $ID "Device Accel Adaptive Deceleration" 2.0 | |
xinput --set-prop $ID "Device Accel Constant Deceleration" 2.0 | |
xinput --set-prop $ID "Device Accel Velocity Scaling" 1.0 | |
xinput --set-ptr-feedback $ID 1 2 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment