Metadata-Version: 2.5
Name: scroll-speed-helper
Version: 0.4.0
Summary: Helper of the Scroll Speed GNOME Shell extension: rescales mouse wheel, touchpad and pointing stick scrolling (D-Bus service).
Project-URL: Homepage, https://github.com/d101c/scroll-speed
Project-URL: Issues, https://github.com/d101c/scroll-speed/issues
License-Expression: GPL-2.0-or-later
License-File: LICENSE
Keywords: evdev,gnome,scroll,uinput,wayland
Classifier: Environment :: X11 Applications :: Gnome
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: dbus-fast>=2.0
Description-Content-Type: text/markdown

# scroll-speed-helper

The helper of the [Scroll Speed](https://github.com/d101c/scroll-speed) GNOME
Shell extension. GNOME hands scroll events to applications before an extension
can change them, so the speed is changed below the compositor: the helper reads
each mouse, touchpad or pointing stick, and replays it through a virtual device
with only the scrolling rescaled.

It runs as you, without any privilege, as a D-Bus session service
(`io.github.d101c.ScrollSpeed`) that the extension talks to. It is started on
demand and exits when the extension is disabled.

## Install

```sh
pipx install scroll-speed-helper
scroll-speed-helper setup
```

`setup` registers the D-Bus service for your session (one file in
`~/.local/share/dbus-1/services`). Then open the extension's preferences and
click "Authorize…": this installs a udev rule, with your password, that gives
your session access to mice, touchpads and pointing sticks, and to
`/dev/uinput`. Physical keyboards are never captured.

## Remove

```sh
scroll-speed-helper unauthorize
scroll-speed-helper remove
pipx uninstall scroll-speed-helper
```

## Without the extension

```sh
scroll-speed-helper run --vertical 0.5 --touchpad 0.5
```

rescales scrolling until Ctrl+C. `scroll-speed-helper probe` prints the devices
it sees and whether it may use them.

## D-Bus interface

Object `/io/github/d101c/ScrollSpeed`, interface `io.github.d101c.ScrollSpeed1`:

| Method | |
|---|---|
| `SetConfig(a{sv})` | `enabled` (b), `vertical`, `horizontal`, `acceleration`, `touchpad`, `pointingstick` (d). The caller becomes the owner: the helper exits when it leaves the bus. |
| `Probe() → s` | JSON: `uinput`, `devices`, `rule`, `version`. |
| `Authorize() → b` | Installs the udev rule through `pkexec`. |
| `RemoveAuthorization() → b` | Removes it. |
| `Stop()` | Gives the devices back and exits. |

Licence: GPL-2.0-or-later.
