Skip to content
プロジェクト

daniel-g-carrasco/wayland-scroll-factor

GitHubで見る

概要

Predictable two‑finger scrolling (vertical + horizontal) and pinch zoom/rotate sensitivity on modern Linux desktops with GNOME.

その他のプロジェクト

この数値の測り方

計測したスター増加

24時間
+3
7日間
+9
15日間
+9
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

Wayland Scroll Factor

License: MIT

Wayland Scroll Factor icon

Tune touchpad scroll and gesture sensitivity on Wayland.
Built for GNOME Wayland.
Current release: 1.0.4.


What WSF Does

Wayland Scroll Factor, or WSF, adjusts touchpad gesture sensitivity when the desktop does not expose enough controls.

It can tune:

  • two-finger vertical and horizontal scroll;
  • pinch zoom;
  • pinch rotate.

WSF is designed to be reversible. It does not use /etc/ld.so.preload, and it does not patch GNOME, libinput, or your kernel.

Desktop Support

Desktop Status Notes
GNOME Wayland Supported Uses a guarded preload backend loaded into gnome-shell.
Hyprland Opt-in module, unsupported Disabled by default; build with -Dhyprland=enabled. See docs/hyprland.md.
KDE Plasma / KWin Not yet Planned, but not implemented.
wlroots compositors Not yet Planned, but compositor-specific behavior still needs work.
X11 Not a target WSF is designed for Wayland compositors.

Install

Arch Linux / AUR

Stable release:

yay -S wayland-scroll-factor

Latest Git build:

yay -S wayland-scroll-factor-git

Use wayland-scroll-factor for normal installs. Use wayland-scroll-factor-git only when you want the latest main branch before the next release.

Fedora Workstation / Fedora Spins

WSF is available from COPR:

sudo dnf install dnf-plugins-core
sudo dnf copr enable daniel-g-carrasco/wayland-scroll-factor
sudo dnf install wayland-scroll-factor

Fedora Atomic Desktops

For Silverblue, Kinoite, Sway Atomic, Budgie Atomic, bootc-based images, or derived systems, add the COPR repo file and layer the package:

fedora_version="$(rpm -E %fedora)"

sudo curl -fsSL \
  -o /etc/yum.repos.d/daniel-g-carrasco-wayland-scroll-factor.repo \
  "https://copr.fedorainfracloud.org/coprs/daniel-g-carrasco/wayland-scroll-factor/repo/fedora-${fedora_version}/daniel-g-carrasco-wayland-scroll-factor-fedora-${fedora_version}.repo"

sudo rpm-ostree refresh-md
sudo rpm-ostree install wayland-scroll-factor
systemctl reboot

Atomic users who build their own image can instead include the same COPR repo and package in the image recipe.

Debian / Ubuntu

There is not an official apt repository yet. For now, install the .deb from the latest GitHub Release:

version="1.0.0"
curl -LO "https://github.com/daniel-g-carrasco/wayland-scroll-factor/releases/download/v${version}/wayland-scroll-factor_${version}-1_amd64.deb"
sudo apt install "./wayland-scroll-factor_${version}-1_amd64.deb"

This currently targets amd64.

NixOS via Flake

The project is available via a Nix flake from this repository. Add it to your flake.nix file like so


{
  description = "WSF Flake";
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
    wsf = {
      url = "github:daniel-g-carrasco/wayland-scroll-factor";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };
  outputs = { nixpkgs, wsf, ... }: {
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        wsf.nixosModules.default
        { programs.wsf.enable = true; }
        ./configuration.nix # The rest of your configuration
      ];
    };
  };
}

openSUSE, Gentoo, And Other Distros

Use the source install for now. Package names for build dependencies are listed in docs/dependencies.md.

One-shot source install:

curl -fsSL https://raw.githubusercontent.com/daniel-g-carrasco/wayland-scroll-factor/main/scripts/bootstrap.sh | bash

Manual source install:

git clone https://github.com/daniel-g-carrasco/wayland-scroll-factor.git
cd wayland-scroll-factor
meson setup build --prefix="$HOME/.local"
meson compile -C build
meson install -C build

The source installer writes under ~/.local. It does not edit system login manager configuration.

Basic Use

Set the main scroll factor:

wsf set 0.35

Set individual factors:

wsf set \
  --scroll-vertical 0.35 \
  --scroll-horizontal 0.35 \
  --pinch-zoom 1.00 \
  --pinch-rotate 1.00

Inspect the current configuration:

wsf get
wsf status
wsf doctor

Open the GUI:

wsf-gui

WSF GUI screenshot

GNOME Wayland

GNOME support uses a per-user preload backend.

Enable it:

wsf set 0.35
wsf enable

Then log out and log back in.

After WSF is loaded into gnome-shell, later factor changes are re-read during new handled gesture events. Changing factors should not require another logout, but enabling or disabling the preload still does.

If diagnostics show a stale or missing preload setup:

wsf repair

Disable it:

wsf disable

Then log out and log back in.

Hyprland (Opt-in Module)

Hyprland support is no longer part of the supported product: nobody was using it and it has no maintainer coverage. The code remains available as an unsupported opt-in module for anyone who wants it:

meson setup build -Dhyprland=enabled

That restores the native scroll backend, the gesture preload session and the Lua helper exactly as they were. Default builds carry no Hyprland behavior and install no Hyprland files. Details and caveats: docs/hyprland.md.

Configuration

WSF stores user settings here:

~/.config/wayland-scroll-factor/config

Supported keys:

scroll_vertical_factor=0.35
scroll_horizontal_factor=0.35
pinch_zoom_factor=1.00
pinch_rotate_factor=1.00

The legacy factor=... key is still accepted for scroll settings.

Uninstall

Package installs should be removed with the package manager used to install them.

Arch:

yay -Rns wayland-scroll-factor

Fedora:

sudo dnf remove wayland-scroll-factor

Fedora Atomic:

sudo rpm-ostree uninstall wayland-scroll-factor
systemctl reboot

Source install:

~/wayland-scroll-factor/scripts/uninstall.sh

Per-user state can also be removed manually:

rm -f ~/.config/environment.d/wayland-scroll-factor.conf
rm -rf ~/.config/wayland-scroll-factor

Documentation

Project Status

WSF is a small open-source tool built around practical desktop behavior. As of 1.0.0 it is a stable, GNOME-focused product: the preload backend has been in daily use for months and the GUI follows current GNOME HIG. Hyprland support survives as an unsupported opt-in build module.

関連プロジェクトを探す

読み込み中…