How to Update Ubuntu Scrolling Speed
It's strange that there's no default GUI provided for us to update the scroll speed on Ubuntu, this is one of the more obvious configuration options missing.
We will use imwheel
to adjust the scroll speed of different applications.
First create the configuration file:
$ touch ~/.imwheelrc
$ vim ~/.imwheelrc
And paste the following configuration into it
"^google-chrome$"
None, Up, Button4, 4
None, Down, Button5, 4
Shift_L, Up, Shift_L|Button4, 4
Shift_L, Down, Shift_L|Button5, 4
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
"^google-chrome$"
section is the application for which we want to update the scroll speed. To get the name of the application, we have to enter the bash command:
$ xprop WM_CLASS | grep -o '"[^"]*"' | head -n 1
Then click on the application and the name will appear in our terminal.
In the above configuration, Button4 scrolls up and Button5 scrolls down.
To change the scroll speed, edit None
the number after the comma in the line that begins with , in our case that's 4 for both scroll up and scroll down.
Save the configuration file and install imwheel
:
$ sudo apt install imwheel
Now launch imwheel
:
$ imwheel -b "4 5"
If imwheel
already running on the machine, we may have to stop that process before starting it:
$ killall imwheel
$ imwheel -b "4 5"
The reason we pass in -b "4 5"
the flag is that we only want to target specific buttons on the mouse, otherwise it would block the side buttons of the mouse (back, forward, etc).
Each ~/.imwheelrc
time you edit , you must re-run the command:
$ killall imwheel
$ imwheel -b "4 5"
If we don't want fine-grained control over using different scroll speeds for different applications, we can set the scroll speed for all applications with a configuration similar to this
".*"
None, Up, Button4, 4
None, Down, Button5, 4
Shift_L, Up, Shift_L|Button4, 4
Shift_L, Down, Shift_L|Button5, 4
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
For reprinting, please send an email to 1244347461@qq.com for approval. After obtaining the author's consent, kindly include the source as a link.
Related Articles
Switching PHP versions on Ubuntu
Publish Date:2025/04/13 Views:78 Category:PHP
-
Different tasks may require running multiple versions of PHP. You may need to switch PHP versions by running two sites on the same server or testing older versions of code using outdated methods. We can switch PHP versions on Ubuntu using t
Restart PostgreSQL in Ubuntu 18.04
Publish Date:2025/04/09 Views:72 Category:PostgreSQL
-
This short article shows how to restart PostgreSQL in Ubuntu. Restart PostgreSQL Server in Ubuntu You can restart Postgres server in Ubuntu using the following command. Order: sudo service postgres restart Sometimes the above command does n
How to Install Nginx on Ubuntu 20.04?
Publish Date:2025/04/07 Views:157 Category:OPERATING SYSTEM
-
Nginx is one of the most popular web servers in the world, responsible for hosting some of the largest and most trafficked sites on the Internet. It is a lightweight application software that can be used as a web server or a reverse proxy.
How to use Let's Encrypt with Nginx to configure https in Ubuntu 20.04
Publish Date:2025/04/07 Views:123 Category:OPERATING SYSTEM
-
Let's Encrypt is a Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates, enabling encrypted HTTPS on your web server. It simplifies the process by providing a software client, Certbot, which a
Detailed introduction on how to add and delete users on Ubuntu 18.04 system
Publish Date:2025/04/07 Views:88 Category:OPERATING SYSTEM
-
Adding and removing users on a Linux system is one of the most important system administration tasks we need to be familiar with. When a new system is created, usually only the root account is accessible by default. While running as the roo
Install WordPress with Nginx on Ubuntu 18.04
Publish Date:2025/04/07 Views:86 Category:OPERATING SYSTEM
-
WordPress is one of the most popular open source content management systems (CMS) with a market share of up to 60% compared to other CMS like Drupal or Joomla. WordPress can be used to develop any type of website, be it a blog, a small busi
Linux: How to install htop on Ubuntu and Mint
Publish Date:2025/04/06 Views:129 Category:OPERATING SYSTEM
-
While top the htop utility provides us with basic information about the processes running on our Linux system, the htop utility goes a step further and provides us with more information about the processes and also allows for several operat
How to Install GCC Compiler on Ubuntu 18.04
Publish Date:2025/04/06 Views:165 Category:OPERATING SYSTEM
-
GCC It is the abbreviation of GNU Compiler Collection , which is applicable to different programming languages such as R, C, C++, Objective-C, Fortran, Ada, Go, D, etc. We can apt install the compiler on Ubuntu using the command line
Configuring Apache Web Server on Ubuntu and Debian
Publish Date:2025/04/05 Views:176 Category:OPERATING SYSTEM
-
This article shows you how to install Apache web server on Ubuntu and Debian, set it up, and access the access logs. Apache Web Server in Ubuntu and Debian Apache HTTP Server is a free and open source web server that is very popular. More t