The Following 8 Users Say Thank You to impeham For This Useful Post: | ||
![]() |
2013-04-05
, 14:50
|
|
Posts: 6,453 |
Thanked: 20,983 times |
Joined on Sep 2012
@ UK
|
#2
|
The Following User Says Thank You to pichlo For This Useful Post: | ||
![]() |
2013-04-05
, 21:26
|
|
Posts: 1,079 |
Thanked: 1,019 times |
Joined on Mar 2010
|
#4
|
The Following User Says Thank You to stickymick For This Useful Post: | ||
![]() |
2013-04-05
, 22:23
|
Posts: 1,548 |
Thanked: 7,510 times |
Joined on Apr 2010
@ Czech Republic
|
#5
|
The Following 4 Users Say Thank You to MartinK For This Useful Post: | ||
![]() |
2013-04-05
, 23:20
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#6
|
The Following 8 Users Say Thank You to Estel For This Useful Post: | ||
![]() |
2013-04-07
, 08:17
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#7
|
The Following 3 Users Say Thank You to impeham For This Useful Post: | ||
![]() |
2013-04-07
, 10:12
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#8
|
The Following User Says Thank You to Estel For This Useful Post: | ||
![]() |
2013-04-07
, 10:41
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#9
|
The Following 4 Users Say Thank You to impeham For This Useful Post: | ||
![]() |
2013-04-07
, 21:29
|
|
Posts: 1,079 |
Thanked: 1,019 times |
Joined on Mar 2010
|
#10
|
Although it is far from ideal (takes a lot of CPU power while running), it uses the proximity sensor to determine which command to execute. It works as follows:
When you close the sensor, it starts to count the number of cycles. If a certain number was reached before the sensor is opened again, command 1 is executed, and if a larger number was reached - a different one is executed.
The script can be configured to change the sensitivity levels (the counts numbers and the interval between the proximity sensor state check).
I used "xdotool" for left/right button pressing or mouse dragging.
Any ideas for improvements are welcome.
You can see a demo moving between desktops and pictures with photos application:
http://www.youtube.com/watch?v=DJPrQ...ature=youtu.be
Script is attached.