Skip to content

Automatically invert scroll direction (setting 'off' Natural Scrolling) when a wired or wireless mouse is connected.

License

Notifications You must be signed in to change notification settings

ayushk7102/Auto-Unnatural-Scroller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Auto-Unnatural-Scroller

Shell script to automatically invert scroll direction (setting 'off' Natural Scrolling) when a wire{d, less} mouse is connected. Turns on 'unnatural' scrolling which suits physical mouse wheels, while maintaining 'natural' scrolling on trackpads.

Useful if, like me, you're too lazy to change the setting every time you plug in a physical mouse.

Works on Ubuntu (tested on 18.04 LTS)

Installation

  1. Download the .sh file and place it in a directory for shell scripts : for eg. ~/lib/sh
  2. If not installed already, install 'xinput', a utility to list and query information about a device and configure input devices via apt-get

sudo apt-get update -y

sudo apt-get install -y xinput

  1. Convert the script into an executable via chmod

chmod u+x natscroller.sh

  1. Finally, run the script:

./natscroller.sh

Do not close the terminal session for the duration of the the day, and repeatedly disconnect and connect your mouse in peace.

About

Automatically invert scroll direction (setting 'off' Natural Scrolling) when a wired or wireless mouse is connected.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages