The default number is 26 the lower the number it is faster to scroll, the higher it is slower to scroll.įinally it should look like this: Section "InputClass" Now go to /usr/share/X11/ and just edit the file nf cd /usr/share/X11/įind the section Section "InputClass" Identifier "touchpad catchall" then add these options: Option "VertScrollDelta" "16" If you are on 18.04 or above just install synaptics: sudo apt-get install xserver-xorg-input-synaptics Now run the script and set your desired mouse wheel speed.Īside from all of these You can use the old good synaptics dirver for this (Yeah I know it is not supported anymore but lets be honest libinput documentation sucks hard). Sed -i "s/\($TARGET_KEY *Button5, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button5, and write new value. Sed -i "s/\($TARGET_KEY *Button4, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button4, and write new value. NEW_VALUE=$(zenity -scale -window-icon=info -ok-label=Apply -title="Wheelies" -text "Mouse wheel speed:" -min-value=1 -max-value=100 -value="$CURRENT_VALUE" -step 1) # see if imwheel config exists, if not create it #ĬURRENT_VALUE=$(awk -F 'Button4,' '' ~/.imwheelrc)
# use the command xev to find what your wheel does. # If you have a mouse with complications or special needs, # Pretty much hard wired to only use a mouse with # imwheel needs to be installed for this script to work # GUI for mouse wheel speed using imwheel in Gnome This solution works for me: sudo apt-get install imwheel zenityĬreate a bash script and insert this: #!/bin/bash Use the command with button numbers both when running for the first time, and as the command you input as a startup application. In any case, you can try and figure out the button numbers for you own specific mouse scroll wheel, and specify them and only them. Imwheel -b "4 5 6 7" this might also work. Imwheel -b "45" this might work for certain mouse types. However, you can still make this work by specifying which buttons to modify in the imwheel command. If you find some buttons mis-behaving after following these instructions, you can always go "back" by removing imwheel as a startup application, and restarting your computer.
If you have extra mouse buttons, this might mess things up as far as their functionality. Add a new entry to the bottom of the list: Name= Wheel Scroll Speed, Command= imwheel, Comment= Activates wheel scroll speed fix on system startup (or whatever you like).Install imwheel and adjust (to make things work):.