Files
nix-config/modules/hardware/input/trackball.org
phundrak a3df5e937f 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-26 00:43:40 +01:00

621 B
Raw Permalink 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;