A cross-platform python script which allows you to control your mouse using the keyboard
-
Globally ( Required on Linux, use sudo ):
pip install keyboard mouse psutil
-
Using pipenv:
pipenv install keyboard mouse psutil
- Linux mouse clicks require xdotool to work due to limitations of the mouse library on linux
"base_speed"
: Sets the base speed of the cursor"scroll_speed"
: Doesn't work on Linux- Sets the scrolling speed
"move_speeds"
: Sets the speeds of the different movement speed modifiers"poll_rate"
: Sets the amount of times the mouse will be updated in one second"keybinds"
: Contains all your keybinds- "scroll_left" and "scroll_right" only available in linux
However sideways scrolling can be achieved by not assigning the shift key in keybinds and pressing it while scrolling
- "scroll_left" and "scroll_right" only available in linux
"keyboard_id"
: Linux only- Id of the keyboard which will be disabled
- Needed for disabling and re-enabling the x11 keyboard
- How to get the id
"master_id"
: Linux only- Id of the master keyboard
- Needed for disabling and re-enabling the x11 keyboard
- How to get the id
"custom_keybinds"
: custom keybinds for mouse mode
- Run it using python3 (sudo required for linux) OR Create a shell script to run it and add it to the path