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 许可协议。转载请注明出处!
相关文章
Linux终端输入密码显示星号
Linux默认密码星号?这体验真不错。一行sudoers配置搞定,真就有人非要用脚本整这些。关闭?那不是自讨没趣吗。
2025-10-01 · 系统配置 · 约 1 分钟
关闭CentOS-6-防火墙,关闭Linux系统防火墙
前言 最近部署服务的时候需要临时关闭一下防火墙,所以记个笔记,如何关闭CentOS防火墙。 查看系统版本 输入:cat /etc/issue 查看版本 通过service关闭 service命令开启以及关闭防火墙为即时生效,下次重启机器的时候会自动复原。 查看防火墙状态: service iptables status 记得在CentOS6.9中是输入iptables,网上有些教程使用serv
2025-10-27 · 系统配置 · 约 1 分钟
小心误关了NAS服务器!修改Linux的电源键功能
NAS居然离线关机了?电源键被傻逼系统接管了。改改`logind.conf`让这玩意忽略电源键,省得误操作重启关机。谁用谁知道,别真当NAS是玩具。
2025-10-27 · 系统配置 · 约 1 分钟
Ubuntu-16-04-升级Python版本到3-6
前言 没办法,unity桌面实在是太好用了,Ubuntu18.04上安装了unity桌面毕竟不够完美,所以我昨天就降级到Ubuntu16.04,享受一波原生Unity桌面的快感。 一切都OK,不过Python版本有点低,所以要用万能PPA源升级一下。 操作 安装Python3.6 sudo add-apt-repository ppa:jonathonf/python-3.6 sudo apt-g
2025-10-27 · 系统配置 · 约 1 分钟
讨论
共 0 条加载评论中…