Modify the mouse scroll wheel speed in the Linux system.
The default mouse wheel speed in Linux is just too slow, always giving me the illusion that Linux is laggy, and it doesn't allow direct modification of mouse wheel speed for all programs like Windows does. But no worries, you can use the tool imwheel to change it~ Installation Debian-based systems: sudo apt install imwheel Arch: sudo pacman -S imwheel Configuration Create the ~/.imwheelrc file nano ~/.imwheelrc Edit the ins
目录6 个章节
The default mouse wheel behavior in Linux is often too slow, which sometimes gives me the illusion that Linux is lagging. Unlike Windows, it doesn't allow you to directly adjust the mouse wheel speed across all applications. But don't worry—you can use a tool called imwheel to fix this!
Installation
Debian-based:
sudo apt install imwheel
Arch:
sudo pacman -S imwheel
Configuration
Create the ~/.imwheelrc file.
nano ~/.imwheelrc
Edit the content:
".*"
None, Up, Button4, 4
None, Down, Button5, 4
Control_L, Up, Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L, Up, Shift_L|Button4
Shift_L, Down, Shift_L|Button5
Run
Run the test
imwheel
Run again
imwheel kill
If you see the prompt, it's successful.
Add to startup items to avoid manually running it every time you start up. You can use Gnome Tweak Tool to add this, but I recently discovered that systemd supports user-level services, and I learned the specific usage from the Arch Wiki.
Using systemd User-Level Service
Create the ~/.config/systemd/user/imwheel.service file.
Edit the content as follows:
[Unit]
Description=IMWheel
Wants=display-manager.service
After=display-manager.service
[Service]
Type=simple
Environment=XAUTHORITY=%h/.Xauthority
ExecStart=/usr/bin/imwheel -d
ExecStop=/usr/bin/pkill imwheel
RemainAfterExit=yes
[Install]
WantedBy=graphical.target
Enable the service using the following commands:
systemctl --user daemon-reload
systemctl --user enable --now imwheel
journalctl --user --unit imwheel
References
- https://wiki.archlinux.org/index.php/IMWheel
- https://blog.lilydjwg.me/2014/2/2/systemd-user-daemons.42631.html
Welcome to Exchange Ideas
I have compiled a series of technical articles and resources. You can reply with linux, flutter, c#, netcore, android, java, python, etc. in the background of the WeChat public account Program Design Lab to obtain related technical articles and resources. At the same time, if you have any questions, you can leave a message in the background of the public account.
_EOF_
Modify the mouse scroll wheel speed in the Linux system.
- 本文作者:
- 程序设计实验室
- 版权声明:
- 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
相关文章
Debian配置默认不开启图形界面
前言 Linux的图形界面实在是太耗资源了,同时开几个虚拟机感觉已经hold不住了,赶紧把这些Linux服务器的图形界面都关掉。 CLI:command Line Interface,命令行界面。 现在的Linux发行版默认登陆界面几乎都是默认为GUI界面,如果按照旧版本的修改inittab文件,在一些比较新的版本是没有这个文件的(Linux的启动服务机制发生改变) 修改Grub配置文件 打开gr
2025-10-27 · 系统配置 · 约 1 分钟
给你的Deepin系统换主题~
我现在的桌面: 因为美国封锁然后华为电脑用上Deepin系统的事情,Deepin系统最近名声大噪,其实Deepin本来的界面就很好看,号称打造最适合国人的系统不是盖的。 不过Deepin有一个坏处,就是默认主题的标题栏太大了…… 太占空间。所以我们要换主题折腾一下。 Deepin的桌面是Qt写的,所以首先要换KDE主题,然后再安排一下GTK3的主题,在Deepin系统设置里面换的主题就是GTK的,
2025-10-01 · 系统配置 · 约 1 分钟
别再手动复制SSH公钥了,Linux服务器一键从GitHub快速导入公钥
输入GitHub用户名就自动导入SSH公钥?Ubuntu这懒人功能挺省事。原理不就是爬取`https://github.com/用户名.keys`吗?手动用`curl`也能实现,装`ssh-import-id`更高效,但谁稀罕这些花里胡哨的。
2026-03-11 · 系统配置 · 约 1 分钟
Debian下SSH服务的安装与配置
https://cnzhx.net/blog/linux-server-ssh-key-auth-configuration/
2025-10-27 · 系统配置 · 约 1 分钟
讨论
共 0 条加载评论中…