HP 2140 mini netbook comes with an ST Microeletronics accelerometer and under linux kernel 2.6.27 we have a driver that supports it (LIS3LV02Dx).
With wmctrl and some scripting we can toggle between workspaces when we tilt the machine left or right. This is a useless script but it has some fun :)
You can download script here http://jambelnet.blogspot.com/2009/09/change-between-workspaces-using-hp-2140...
i want this on my windows 7. it is possible?
bogdan7alex 1 year ago
@bogdan7alex With those scripts, no. Now if Windows provides a driver for the sensor you probably write your own program or script to encapsulate the values. Also I don't think that there is multiple workspaces in Windows as in Linux.
jambelnet 1 year ago
nice worke! have you used a externel sensor??? and can you show your code?
EldarPoli 2 years ago
No I have used the build in sensor. You can download source scripts in my blog
jambelnet 2 years ago