Installation
安装
- Download the package matching your distribution from GitHub Releases. 从 GitHub Releases 下载适合你发行版的安装包。
-
Install the package.
安装下载好的包。
Ubuntu / Linux Mint
cd ~/Downloads sudo apt install ./smooth-scroll-*.debFedora
cd ~/Downloads sudo dnf install ./smooth-scroll-*.rpm -
Start using your mouse wheel.
smooth-scroll.servicestarts immediately and is enabled at boot. 直接开始使用鼠标滚轮。smooth-scroll.service会立即启动,并随系统开机自启。
If you do not see a package for your distribution in Releases, build from source on GitHub using the repository instructions.
如果 Releases 中没有适合你发行版的安装包,请到 GitHub 按仓库说明从源码编译。
How To Use
如何使用
Start with normal wheel scrolling, then use the following controls when you need to stop inertia, bypass smoothing, or switch into a special mode.
先像平常一样滚动鼠标滚轮。需要停止惯性、绕过平滑处理,或进入特殊模式时,再使用下面这些控制。
-
Smooth Scroll
Use the wheel normally. The daemon converts each wheel burst into a smooth motion curve.
正常使用滚轮即可。daemon 会把每段滚轮输入转换为平滑的运动曲线。
Input输入Wheel action滚轮动作
-
Stop Inertia
停止惯性
Use a small interrupt when you want the current glide to stop. Default keyboard braking uses
L_SHIFTandR_SHIFT, and those keys can be customized.想让当前惯性立刻停下时,使用一个轻量的中断动作。默认键盘停止使用
L_SHIFT和R_SHIFT,这些按键可以自定义。Method Action Note 方式 输入顺序 备注 Reverse wheel反向滚轮 Wheel action滚轮动作>Reverse wheel反向滚轮 Best for quick stops.适合快速停止。 Mouse button鼠标按键 Wheel action滚轮动作>Any button任意按键 Except Free Spin.不包括 Free Spin。 Mouse movement鼠标移动 Wheel action滚轮动作>Mouse move鼠标移动 Useful during pointer moves.适合移动指针时使用。 Keyboard键盘 Wheel action滚轮动作>Key press/release按键按下/释放 Default: Shift keys.默认:Shift 键。 -
Keyboard Passthrough
Hold a passthrough key when the application should receive raw wheel events, for example browser zoom or editor shortcuts. Pressing or releasing it also brakes inertia, while a held pointer gesture keeps ownership. Defaults:
CtrlandSuper, both customizable.当应用需要接收原始滚轮事件时,按住透传按键,例如浏览器缩放或编辑器快捷操作。按下或松开也会制动惯性,但仍按住的指针手势会保留所有权。默认按键:
Ctrl和Super,都可以自定义。Input输入Hold Ctrl / Super按住 Ctrl / Super>Wheel action滚轮动作
-
Direct Mode
直连模式
In Direct Mode, the system receives mouse input directly, bypassing Smooth Scroll processing and forwarding. By default, release all mouse buttons and press
Scroll Lockto enter Direct Mode. Repeat to resume smooth scrolling.开启直连模式后,系统直接接收鼠标输入,省去 Smooth Scroll 处理和转发的延迟。默认操作是先松开所有鼠标按键,再按
Scroll Lock进入直连模式。重复此操作即可恢复平滑滚动。 -
Free Spin
Use Free Spin for long pages or timelines when you want a steady cruise without automatic deceleration. Default button: right mouse button, customizable.
在长页面或时间线上需要持续巡航滚动时使用 Free Spin,此时不会自动减速。默认按键是鼠标右键,可以自定义。
Input输入Wheel action滚轮动作>Right press右键按下>Wheel action滚轮动作>Right release右键释放
-
Drag View
Use Drag View when you want mouse movement to pan content, including horizontal movement. It can be available only while scrolling or at any time. A quick press is replayed as a normal click. Default button: middle mouse button, customizable.
希望用鼠标移动来平移内容时使用 Drag View,也可以处理横向移动。它既可设为仅滚动时可用,也可设为始终可用;快速按下松开仍会补发为普通单击。默认按键是鼠标中键,可以自定义。
Input输入Wheel action滚轮动作>Middle press中键按下>Mouse move鼠标移动>Middle release中键释放
-
Auto Scroll
Auto Scroll is an optional hands-free mode with vertical-only, horizontal-only, and omnidirectional axis modes. Press its configured button and move beyond the dead zone; release while moving to keep scrolling, or return to the dead zone before release to exit. Move the mouse to adjust speed and click the Auto Scroll button again to exit a latched session. It is disabled by default.
Auto Scroll 是可选的免手持模式,可配置为仅垂直、仅水平或全向。按下配置的按键并移动鼠标越过死区;有速度时松开会保持滚动,松开前回到死区则退出。锁定后可继续移动鼠标调整速度,再次单击 Auto Scroll 按键即可退出。该模式默认禁用。
Input输入Auto press按下 Auto>Cross dead zone越过死区>Release while moving有速度时松开
Extensions
扩展
Install the extension for your desktop if you want to see the current scroll state near the pointer, stop inertia when you leave a window, or configure application windows that should use compatibility passthrough.
如果你想在指针旁看到当前滚动状态、离开窗口时自动停止惯性,或设置哪些应用窗口需要使用兼容性透传,请安装对应桌面环境的扩展。
- See whether Smooth Scroll is scrolling, holding Free Spin, in Drag View or Auto Scroll, or using or waiting to enter compatibility passthrough.
- 看清当前是平滑滚动、保持 Free Spin、处于 Drag View 或 Auto Scroll,还是兼容性透传已生效或正在等待生效。
- Stop the current glide automatically when the pointer moves out of the window.
- 指针移出当前窗口时,自动停止正在进行的惯性滚动。
- Add compatibility-passthrough rules for applications that cannot handle Smooth Scroll's high-resolution wheel output.
- 为无法处理 Smooth Scroll 高精度滚轮输出的应用添加兼容性透传规则。
Choose a preset
选择预设
Download a complete configuration. Each includes a global profile and compatibility passthrough.
下载适合你的完整配置,已包含全局 Profile 和兼容透传。
To apply: replace the system configuration and restart the service.
下载后,替换系统配置并重启服务即可应用。
sudo cp ~/Downloads/smooth-scroll.toml /etc/smooth-scroll/smooth-scroll.toml
sudo systemctl restart smooth-scroll.service
Want to fine-tune a preset? Visit Customization to adjust and export your configuration.
想进一步调整预设?前往自定义页面,修改参数并导出配置。