|
2008-03-10
, 22:01
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#42
|
|
2008-03-10
, 22:34
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#43
|
#!/bin/sh killall evrouter mouse_poll rm /tmp/.evrouter\:0.0 for devfile in /dev/input/event*; do sudo /bin/chmod a+r $devfile done device="/dev/input/`awk '/^H.*mouse/ {print $NF}' </proc/bus/input/devices`" if [ "$device" != /dev/input/ ] ; then echo "Device found: $device" else echo "No device found! Aborting." exit 1 fi cat >~/.evrouterrc_auto < ~/.evrouterrc sed "s/dev/$device/" >~/.evrouterrc_auto << E_O_F Window "" "" "dev" any key/272 "XButton/1" "" "dev" any key/273 "XButton/3" "" "dev" any key/274 "XButton/2" "" "dev" any rel/8/1 "XKey/Up" "" "dev" any rel/8/-1 "XKey/Down" E_O_F mouse_poll $device& evrouter -c ~/.evrouterrc_auto /dev/input/event*& while [ "x`grep '^H.*mouse' /proc/bus/input/devices`" != x ]; do sleep 5 done killall evrouter mouse_poll
|
2008-03-13
, 15:28
|
Posts: 12 |
Thanked: 2 times |
Joined on Mar 2008
|
#44
|
|
2008-03-14
, 21:11
|
Posts: 631 |
Thanked: 837 times |
Joined on May 2007
@ Milton, Ontario, Canada
|
#45
|
The Following User Says Thank You to jolouis For This Useful Post: | ||
|
2008-03-14
, 21:59
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#46
|
|
2008-03-18
, 18:02
|
Posts: 30 |
Thanked: 1 time |
Joined on Dec 2007
@ Minneapolis
|
#47
|
|
2008-03-18
, 18:06
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#48
|
|
2008-03-19
, 15:59
|
Posts: 631 |
Thanked: 837 times |
Joined on May 2007
@ Milton, Ontario, Canada
|
#49
|
The Following 12 Users Say Thank You to jolouis For This Useful Post: | ||
|
2008-03-19
, 23:40
|
|
Posts: 698 |
Thanked: 129 times |
Joined on Oct 2007
@ CA
|
#50
|
First off, Benson awesome work on this so far... regarding this point:
Last edited by jolouis; 2008-03-10 at 20:41.