Creating script to remove acceleration

Forum rules
Before you post please read how to get help
JackieRobinson
Level 1
Level 1
Posts: 8
Joined: Fri Jul 27, 2012 11:09 pm

Creating script to remove acceleration

Postby JackieRobinson » Fri Jul 27, 2012 11:25 pm

Hello,

I want to permanently remove mouse accelleration

I know how to remove it through terminal but that doesn't remain after boot (I don't think).

So, here's my newbie question: How do I turn a gedit text file into a script that runs on boot? What do I name it and where do I put it on the system?

This is my script:

#!/bin/bash
#wait for the desktop to settle
sleep 5
# turn off mouse acceleration
xinput set-prop 'SteelSeries Kinzu' 'Evdev Middle Button Emulation' 0
xinput set-prop 'SteelSeries Kinzu' 'Device Accel Profile' -1
xinput set-prop 'SteelSeries Kinzu' 'Device Accel Velocity Scaling' 1

Cheers :)

Jack

User avatar
xenopeek
Level 23
Level 23
Posts: 19227
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Creating script to remove acceleration

Postby xenopeek » Sat Jul 28, 2012 5:36 am

Moved your topic here, as it is about scripting.

Easiest way is to mark the file executable (in your file manager, right-click the file and select Properties > Permissions > Allow executing file as program), and then add it in the Startup Applications program. As the command for the new entry in Startup Applications, give it the full path to your file. So something like:

Code: Select all

/home/jack/Documents/Scripts/nomouseaccel.bash
Image

JackieRobinson
Level 1
Level 1
Posts: 8
Joined: Fri Jul 27, 2012 11:09 pm

Re: Creating script to remove acceleration

Postby JackieRobinson » Sat Jul 28, 2012 7:33 am

Thanks Vincent,

I got it working

Jack.


Return to “Scripts & Bash”

Who is online

Users browsing this forum: No registered users and 0 guests