A Python based tool for matching your mouse sensitivity between 3D games on Linux. Probably only works on systems using X11 display server protocol as it uses the Xlib extension XTEST for simulating mouse events. If you run Wayland, please give it a go with XWayland.
Heavily inspired by Kovaak's Sensitivity Matcher. I could not get it to work in Linux so I set out to make a viable alternative as I have enjoyed using it under Windows.
Using your base Python installation or favourite virtual enviroment:
# Setup
git clone https://github.com/grindzohr/SensMatch.git
cd SensMatch
python3 -m pip install -r requirements.txt
# Run
python3 sensmatch.py
A bundled package is available under releases. It's rather large as it contains a full Python enviroment and dependencies. The upside is that you don't need to have any knowledge of Python or even have it installed to use the tool.
# Make it executable
sudo chmod +x sensematch-0.1.0-beta
#Run
./sensematch-0.1.0-beta
Run the tool, then:
- Select the game/engine you want to convert the sensitivity from.
- Input your sensitivity value from this game/engine.
- If the game/engine you are converting to exists in the preset list, then select it now. The correct sensitivity value will be automatically calculated and displayed in the 'Sens' field. Great, you are done. If not, proceed to the next step.
- Aim at specific point in your new game and press
Alt+.
, this will trigger a mouse event equivalent to a 360 degree rotation in the game/engine you are converting from. - Depending on if you are under- or overshooting your target, adjust the the mouse sensitivity in your new game until
Alt+.
performs a perfect (or close enough) 360 degree rotation.
SensMatch will look for a JSON configuration file in the following location:
~/.config/sensmatch/config.json
See example_config.json for syntax.
- Despair when I realize how broken the tool is.
- Create an in app tutorial.
- Create tooltips for all the parameters.
- Enable input of 'Spin' settings.
- Add more common presets people might want.
- Add support for custom 'spin' hotkey in config file.
- Add support for user defined presets.
- Make a proper icon.