Skip to content

Instantly share code, notes, and snippets.

@matdombrock
Last active February 4, 2025 23:27
Show Gist options
  • Save matdombrock/c3a7215fae22dd38d77268da398b72c3 to your computer and use it in GitHub Desktop.
Save matdombrock/c3a7215fae22dd38d77268da398b72c3 to your computer and use it in GitHub Desktop.
Fedora 2 Finger Scroll Fix

Overview

At the time of writing, Gnome has no support for changing the touchpad scroll speed.

This is a bit of a hack but it works.

Tested on Framework 13 with Fedora Linux 41 (Workstation Edition)

Build and install libinput-config

sudo dnf install systemd-devel
sudo dnf install -y gcc libinput-devel meson
git clone https://gitlab.com/warningnonpotablewater/libinput-config.git
cd libinput-config
meson build
ninja -C build
mkdir -p ~/.local/lib64
cp build/libinput-config.so ~/.local/lib64

mkdir -p ~/.config/systemd/user/[email protected]/
cat <<EOF >> ~/.config/systemd/user/[email protected]/libinput-config.conf
[Service]
Environment="LD_PRELOAD=%h/.local/lib64/libinput-config.so"
EOF

Configure

edit sudo nvim /etc/libinput.conf

scroll-factor=0.2
scroll-factor-x=0.2
scroll-factor-y=0.2

Option Docs

Apply

logout or reboot

Firefox

You may still have issues scrolling in Firefox. Navigate to about:config and enter:

mousewheel.default.delta_multiplier_y

Experiement with this value to fix Firefox specific scroll speed issues.


Thanks to Jack Wilsdon for original instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment