From fb068f2efaba473aca055b97ddf31d01e2c79ad0 Mon Sep 17 00:00:00 2001 From: Yves Dubromelle Date: Thu, 5 May 2016 00:36:56 +0200 Subject: [PATCH] =?UTF-8?q?am=C3=A9liorations=20pour=20les=20"marble=20mou?= =?UTF-8?q?se"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- desktop.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/desktop.nix b/desktop.nix index 98522cb..596a056 100644 --- a/desktop.nix +++ b/desktop.nix @@ -135,6 +135,30 @@ windowManager.awesome.enable = true; startGnuPGAgent = true; startOpenSSHAgent = false; # pas compatible avec l'agent GnuPG + inputClassSections = ['' + Identifier "Marble Mouse" + MatchProduct "Logitech USB Trackball" + MatchIsPointer "on" + MatchDevicePath "/dev/input/event*" + Driver "evdev" + # Physical button #s: A b D - - - - B C b = A & D simultaneously; - = no button + #Option "ButtonMapping" "1 8 3 4 5 6 7 2 2" # For right-hand placement + #Option "ButtonMapping" "3 8 1 4 5 6 7 2 2" # For left-hand placement + + # EmulateWheel refers to emulating a mouse wheel using Marble Mouse trackball. + Option "EmulateWheel" "true" + Option "EmulateWheelButton" "8" # Factory default; use "9" for left-side placement. + + # EmulateWheelInertia specifies how far (in pixels) the pointer must move to + # generate button press/release events in wheel emulation mode. + Option "EmulateWheelInertia" "10" # Factory default: 50 + + Option "ZAxisMapping" "4 5" + Option "XAxisMapping" "6 7" # Disable this for vertical-only scrolling. + # Emulate3Buttons refers to the act of pressing buttons A and D + # simultaneously to emulate a middle-click or wheel click. + Option "Emulate3Buttons" "true" # Factory default. + '']; }; hardware.pulseaudio = {