david-haerer/rat
keyboard. driven. mouse.
keyboard. driven. mouse.
IMPORTANT Rat only works on Linux with X11 and only with a single display.
Download the pre-built binary from the GitHub Releases page and add it to your $PATH
.
[!TIP] For easy access define a keyboard shortcut to launch Rat.
Rat grabs the keyboard during execution, such that only the following keys are active.
The following keys change the mode Rat is working in. Rat starts in normal mode.
Key | Mode |
---|---|
q |
Exit Rat. |
s |
Scroll mode. |
ESCAPE |
Return to normal mode. |
The following keys set the direction. The action taken depends on the current mode.
Key | Direction |
---|---|
h / LEFT |
Left |
y |
Left + 30° Up |
u |
Up + 30° Left |
k / UP |
Up |
i |
Up + 30° Right |
o |
Right + 30° Up |
l / RIGHT |
Right |
. |
Right + 30° Down |
, |
Down + 30° Right |
DOWN / j |
Down |
m |
Down + 30° Left |
n |
Left + 30° Down |
The following keys act as the three mouse buttons.
Key | Button |
---|---|
SPACE |
Left |
x |
Middle |
r |
Right |
NOTE Since Rat is still in early development, here's a list of more mature alternatives. If you know of a program that would fit this list, feel free to reach out ❤️
Name | Platform | Description |
---|---|---|
warpd | X11 Wayland macOS |
A modal keyboard driven interface for mouse manipulation. |
keynav | X11 |
Control the mouse with the keyboard. |
keynavish | Windows |
Control the mouse with the keyboard, on Windows. |
TPMouse | Windows |
A virtual trackball for Windows, via vim-like homerow controls. |
AhkCoordGrid | Windows |
AutoHotkey code for Windows overlay grid allowing you to emulate mouse click at different points on the screen using keyboard shortcuts. |
Mouseable | Windows |
Control the mouse via the keyboard. |
win-vind | Windows |
You can operate Windows with key bindings like Vim. |
Scoot | macOS |
Your friendly cursor teleportation and actuation tool. |
Shortcat | macOS |
Manipulate macOS masterfully, minus the mouse. |
vimac | macOS |
Stop using your clunky trackpad/mouse now. |
Homerow | macOS |
Keyboard shortcuts for every button in macOS. |
Superkey | macOS |
Simple and powerful keyboard enhancement on macOS. |
Make sure the X11 Testing -- Record extension library is installed.
sudo apt install libxtst6
The log outputs of Rat can be found in $HOME/.local/share/rat.log
.
Thank you for considering to contribute ❤️!
If you run into problems or have feedback, feel free to open a GitHub issue.
If you want to work on the code yourself, see DEVELOPMENT.md for further documentation.
[!TIP] For ideas on what to work on, have a look at the GitHub issues.