Hello, i've been trying to figure this out for about three hours now and just can't. I am running Debian Wheezy on my thinkpad. I am trying to configure the middle button to scroll with the trackpoint. I've been to the think wiki and have grabbed this script.
xinput list | sed -ne 's/^[^ ][^V].*id=\([0-9]*\).*/\1/p' | while read id
case `xinput list-props $id` in
*"Middle Button Emulation"*)
xinput set-int-prop $id "Evdev Wheel Emulation" 8 1
xinput set-int-prop $id "Evdev Wheel Emulation Button" 8 2
xinput set-int-prop $id "Evdev Wheel Emulation Timeout" 8 200
xinput set-int-prop $id "Evdev Wheel Emulation Axes" 8 6 7 4 5
xinput set-int-prop $id "Evdev Middle Button Emulation" 8 0
# disable middle button
xmodmap -e "pointer = 1 9 3 4 5 6 7 8 2"
If i put this in my .bashrc file it works but only when i launch the terminal. I would like it to run automatically. I'm under the impression that this is done with /etc/rc.local, but i've not much clue about rc.local. made the rc.local file executable but don't know what to put in there to have this bloody script launch. I think wheezy uses systemd? Here is the contents of my rc.local file at the moment.
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# By default this script does nothing.
Please help me get my script to launch automatically.