Getting Started
-
3. Finding out Device Name
So to Display Devices List
Run:Copyxinput list
Select & Copy Device’s Name with Ctrl+x.
Or simply take note of the Device’s ID.
But if No Device Name but “xwayland” on GNOME Wayland then instead follow the linked Guide:How to Set up Trackball Scroll Wheel Emulation on GNOME Wayland
Here Trackball Scroll Wheel Wayland GuideHow to Enable Trackball Scroll Wheel Emulation on GNU/Linux Wayland Desktops -
4. Setting up Xinput Device Emulation
Now to Enable Xinput Device Emulation on Kali
First, to list the available Properties run:Copyxinput list-props "[DEVICENAME]"
Or alternatively:
Copyxinput list-props [DEVICEID]
So in this case for instance:
Copyxinput list-props "Kensington Kensington Expert Mouse"
Or else:
Copyxinput list-props 13
Now in this practical Example I show you How to Set up a Trackball Scroll Emulation.
Next to set up a Trackball Wheel Scroll, first enable it:Copyxinput --set-prop "Kensington Kensington Expert Mouse" "Evdev Wheel Emulation" 1
So alternatively easier using the ID like:
Copyxinput --set-prop 13 "Evdev Wheel Emulation" 1
And then set the Target Button:
Copyxinput --set-prop 13 "Evdev Wheel Emulation Button" 2
How to Find the Trackball Button ID
Here Find Device Button on KaliHow to Find the Trackball Button Number on Kali Linux -
5. Making Permanent Config
Last, to make a Permanent Xinput Configuration File
For a Single User using the nano editor, put your both Commands into:Copynano ~/.xsessionrc
Ctrl+x to Save & Exit from nano Editor.
So the setup should be consistent also after Reboot.
Contents