Fix Scrollilng Speed on Ubuntu 18.04
Install `imwheel`:
sudo apt install imwheel
Create a file with this content:
#!/bin/bash# Version 0.1 Tuesday, 07 May 2013# Comments and complaints http://www.nicknorton.net# GUI for mouse wheel speed using imwheel in Gnome# imwheel needs to be installed for this script to work# sudo apt-get install imwheel# Pretty much hard wired to only use a mouse with# left, right and wheel in the middle.# If you have a mouse with complications or special needs,# use the command xev to find what your wheel does.#### see if imwheel config exists, if not create it ###if [ ! -f ~/.imwheelrc ]thencat >~/.imwheelrc<<EOF".*"None, Up, Button4, 1None, Down, Button5, 1Control_L, Up, Control_L|Button4Control_L, Down, Control_L|Button5Shift_L, Up, Shift_L|Button4Shift_L, Down, Shift_L|Button5EOFfi##########################################################CURRENT_VALUE=$(awk -F 'Button4,' '{print $2}' ~/.imwheelrc)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)if [ "$NEW_VALUE" == "" ];then exit 0fised -i "s/\($TARGET_KEY *Button4, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button4, and write new value.sed -i "s/\($TARGET_KEY *Button5, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button5, and write new value.cat ~/.imwheelrcimwheel -kill
Run it and set the scroll speed from 1 to 2. I think this would do. I have a feeling that I should add `imwheel` to the startup to fix the speed after the boot.

Comments