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 许可协议。转载请注明出处!
相关文章
Debian8-stable-升级Python版本到3-6
前言 最近把一个Python项目部署到服务器上,然而服务器上的Python版本实在是太旧了,于是着手进行更新。 互联网上搜索到的方法都是下载Python3.6的代码之后手动编译,然而在服务器上编译安装出了点问题,于是想到了Ubuntu的ppa方式,debian和Ubuntu本属同源,理论上Ubuntu的ppa,debian也是可以用的。 操作步骤如下: 添加软件源 add-apt-reposito
2025-10-27 · 系统配置 · 约 1 分钟
Ubuntu-18-04-安装最新版VLC播放器
添加软件源 sudo add-apt-repository ppa:videolan/master-daily sudo apt update Install sudo apt install vlc qtwayland5 运行VLC播放器 安装额外解码器 vlc-plugin-access-extra - multimedia player and streamer (extra access
2025-10-27 · 系统配置 · 约 1 分钟
Linux--使用Snap安装第三方微信客户端Electronic-Wechat
前言 腾讯估计是不会给Linux系统开发任何软件了,不过问题不大。我们有很多好用的第三方软件替代~~(无奈之举,摊手)~~ 关于Snap Ubuntu官网上的介绍 Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single bu
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 条加载评论中…