forked from 413x1nkp/rdotool
Easier to use than ydotool, faster to run than dotool. Built with enigo
- Rust 100%
| src | feat: add help command | |
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | docs: add LICENSE | |
| LICENSE | docs: add LICENSE | |
| README.md | docs: reformat supported commands list in README | |
rdotool - Simple input automation
This is a Rust-based input automation tool combining simplicity of dotool with performance of ydotool. It's designed for both command-line and scripting use cases.
Features
- Easier to use than other tools alike (i.e.
ydotool) - Two operation modes: CLI arguments (argsv) and direct STDIN streaming
- Key press simulation
- Mouse position control (absolute coordinates)
- Direct text typing, all keyboard-simulated
- Key hold and release support for more complex interactions
Usage
Command-line mode (single action per command)
# Single key press
rdotool key Enter
# Type text directly
rdotool text "Hello, World!"
# Move mouse to absolute position X,Y
rdotool movemouse 600 400
STDIN mode (batch operations)
# Action sequence
echo '
keydown ctrl
keydown shift
key right
keyup shift
keyup ctrl
' | rdotool
# Read actions from file
rdotool < commands.txt
Supported commands
Key presses
rdotool key A
rdotool key F11
rdotool key Escape
rdotool key right
Text input
rdotool text "これはかなりクールだ!"
Mouse control
rdotool mousemove 1920 1080
Key states (STDIN only)
keydown shift
keyup shift