Creating script to remove acceleration

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
JackieRobinson

Creating script to remove acceleration

Post by JackieRobinson »

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29587
Joined: Wed Jul 06, 2011 3:58 am

Re: Creating script to remove acceleration

Post by xenopeek »

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

Re: Creating script to remove acceleration

Post by JackieRobinson »

Thanks Vincent,

I got it working

Jack.
Locked

Return to “Scripts & Bash”