Review of "Scroll Speed" version 0.3 (2)

Details Page Preview

Scrolling too fast, or too slow? GNOME lets you set the pointer speed, but not the scroll speed. Scroll Speed adds the missing setting. • Mouse wheel: from 0.1× to 5×, with a separate horizontal speed and optional acceleration when the wheel spins fast. • Touchpad: two-finger scrolling slower or faster. Pinch, taps, swipes and click-and-drag stay exactly as they are. • Pointing stick (TrackPoint): middle-button scrolling slower or faster. It works in every application, on Wayland and X11, and changes apply while you move the slider. A device left at 1× is not touched at all. How it works: GNOME hands scroll events to applications before an extension can change them, so a small bundled Python helper (standard library only) reads the device and replays it through a virtual one, with only the scrolling rescaled. This needs one authorization, asked from the preferences with your password: a udev rule that gives your session access to mice, touchpads and pointing sticks, and to /dev/uinput (which lets programs of your session create virtual input devices). The helper never captures physical keyboards. The helper itself runs as you, without any privilege. The rule stays installed until you click "Remove…" in the preferences, even after the extension is uninstalled. Requires Python 3. Touchpad edge scrolling is not affected. This is an early release: reports are welcome on GitHub.

Extension Homepage
https://github.com/d101c/scroll-speed

No comments.

Diff Against

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

Shexli (experimental)

Shexli did not find any issues.

All Versions

Version Status
0.3 (2) Unreviewed
0.2 (1) Rejected

Previous Reviews on this Version

jg__ posted a review
Changes since 0.2: the description now states exactly what the udev rule grants: uaccess on /dev/uinput (which lets programs of the session create virtual input devices) and on mice, touchpads and pointing sticks; physical keyboards are excluded from capture. It also says the rule stays installed until "Remove…" is clicked in the preferences, even after the extension is uninstalled. The helper's lock file now lives only in $XDG_RUNTIME_DIR (O_NOFOLLOW, mode 0600); the /tmp fallback is removed. GLib.Source.remove replaces GLib.source_remove, the LICENSE file is in the zip, and comments were trimmed. Justification for what may raise questions: - Python instead of GJS: GJS cannot issue the EVIOCGRAB and uinput ioctls the helper needs. It uses the Python standard library only, with no third-party code and nothing downloaded. - pkexec: the command is a fixed string built in permission.js. It writes one known rule file and reloads udev. No file that a user process can edit is executed as root. - udev rule: uaccess for /dev/uinput and for the event nodes of mice, touchpads and pointing sticks, the same mechanism used for joysticks. Keyboards are excluded from the event-node rules. The rule is removable from the preferences, and the helper runs unprivileged, started in enable() and terminated in disable(). - No network access and no clipboard access. I used AI assistance to write and review this code and can explain every line.