Files
nix-config/modules/hardware/input/trackball.org
T
phundrak ba018ef841 refactor: change to litterate config
Configuration is now held by the `.org` files. All `.nix` files are
tangled from the org-mode files.
2026-10-06 12:40:58 +02:00

621 B
Raw Blame History

Trackball

Trackball

I use a trackball on some of my machines, and I middle-click by pressing the left and right buttons together rather than through a dedicated button. That’s the only downside of the two trackballs I own; otherwise, I can’t recommend one enough. Here’s the nixos.trackball module enabling this behaviour.

{
  flake.modules.nixos.trackball = {
    <<middle-emulation>>
  };
}

Enabling middle-click emulation is simple:

services.libinput.mouse.middleEmulation = true;