Skip to content

Instantly share code, notes, and snippets.

@paulodeleo
Created April 20, 2019 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulodeleo/7b0e39f80fa04c7a8cb3009d5744c0d0 to your computer and use it in GitHub Desktop.
Save paulodeleo/7b0e39f80fa04c7a8cb3009d5744c0d0 to your computer and use it in GitHub Desktop.
Script to fix natural touchpad scroll direction for gnome based apps on XFCE4 (eg.: Xubuntu). A copy of https://gist.github.com/wjladams/1a7f37019e0b1b3c2c0be335142b1852
#!/bin/sh
# Find the amount by doign
# synclient | grep HorizScrollDelta
# synclient | grep VertScrollDelta
# And then simply negative that value for this
# Found at
# https://askubuntu.com/questions/690512/how-to-enable-natural-scrolling-in-xfce4/853262
# This is because, although xubuntu 18.04 has reverse scrolling option in touchpad
# settings, it doesn't really work, the setting does not cascade to gnome apps for some reason.
synclient HorizScrollDelta=-116
synclient VertScrollDelta=-116
@falahrumaria
Copy link

hi I have 2 laptops both with xubuntu 20, I run the script for my first laptop and it worked, but when I tried it with my other laptop it didn't work, do you know why?

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