Examples
Basic Usage
Simple Typing
The most basic usage - just type some text:
typesim
# Choose option 1
# Paste: Hello, world!
# Press Enter
# Switch to appTyping Code
typesim works great for typing code snippets:
typesim
# Choose option 1
# Paste:
def hello():
print("Hello, world!")
hello()
# Press Enter
# Switch to code editorLoading from Files
Load a Text File
typesim
# Choose option 3
# Enter: ~/Documents/essay.txt
# Press Enter
# Switch to appLoad Code from File
typesim
# Choose option 3
# Enter: ~/projects/script.py
# Press Enter
# Switch to editorCustom Configurations
Fast Typing
For quick demos or when you're in a hurry:
- Run
typesim - Choose Settings (option 2)
- Set Speed Multiplier to
2.0x - Set Base Delay Min/Max to
20-50ms - Go back and start typing
Slow, Deliberate Typing
For presentations or when you want to emphasize:
- Run
typesim - Choose Settings (option 2)
- Set Speed Multiplier to
0.5x - Set Thinking Pause to
500-1500ms - Go back and start typing
More Typos
For demonstrating error correction:
- Run
typesim - Choose Settings (option 2)
- Set Typo Probability to
15% - Go back and start typing
AI-Powered Rephrasing
For more dynamic text changes:
- Set
GEMINI_API_KEYenvironment variable - Run
typesim - Choose Settings (option 2)
- Enable "Use AI"
- Set Rephrase Probability to
20% - Go back and start typing
Using Presets
Quick Preset Selection
typesim
# Press 'p' for presets
# Choose: Natural
# Start typingPresets are pre-configured for common use cases.
Advanced Workflows
Export and Share Config
Create a custom config and share it:
typesim
# Configure settings
# Press 'e' to export
# Enter: my-custom-config.yaml
# Share the file with othersImport Team Config
Use a shared configuration:
typesim
# Press 'i' to import
# Enter: team-config.yaml
# Settings loaded!Batch Typing Multiple Files
While typesim doesn't support batch mode directly, you can script it:
#!/bin/bash
for file in *.txt; do
echo "Typing $file..."
# Manual process: run typesim, load file, type
doneReal-World Use Cases
Code Demo
Demonstrating code typing in a presentation:
- Configure for natural typing speed
- Load your code file
- Start typing into your IDE
- Use pause/resume to control flow
Chat Simulation
Making chat messages look more natural:
- Set moderate typo probability (5-10%)
- Use natural speed
- Type into chat application
- Let typos and corrections happen naturally
Writing Demo
Showing writing process:
- Enable higher edit probability (15-20%)
- Enable rephrasing if AI is available
- Type into word processor
- Show natural editing behavior
Testing Accessibility
Testing keyboard input handling:
- Use typesim to simulate user input
- Test how applications handle realistic typing
- Verify keyboard shortcuts work correctly
Tips and Tricks
Countdown Timing
- Use 3-5 seconds countdown for most cases
- Increase if you need more time to switch apps
- Decrease if you're quick at switching
Speed Control
- Start with default speed (1.0x)
- Adjust during typing with +/- keys
- Faster speeds (1.5x+) for demos
- Slower speeds (0.5x) for emphasis
Emergency Stop
Always remember: Esc stops everything immediately
Useful if:
- You need to stop mid-typing
- Something goes wrong
- You need to switch apps urgently
File Paths
- Use absolute paths:
/Users/name/file.txt - Use tilde expansion:
~/Documents/file.txt - Relative paths work from current directory
Troubleshooting
Typing Too Fast/Slow
Adjust speed multiplier in settings or use +/- during typing.
Not Enough Typos
Increase typo probability in settings (try 10-15%).
Too Many Corrections
Decrease edit probability or typo probability.
AI Not Working
- Check
GEMINI_API_KEYis set - Verify API key is valid
- Check internet connection
- Disable AI if not needed