A simple wrapper for xdotool to easily script some basic input macros
You can pass a single mouse button to trigger or a list of keystrokes
- click
- wheel
- rclick
- wup
- wdown
- Characters: a, b, 1, 2, Y, Z
- Keys: Return, space, L_Shift
- Combos: ctrl+a, shift+i
- -w window_name: focus the first window by that name and send the inputs to it
- -r times: repeat the inputs this amount of times
- -d millis: delay between each click or series of keystrokes
- -p x,y: position the mouse in (x,y) before triggering the inputs
- -D: Dry-run mode, output the
xdotool
lines that would be executed - -v: verbose mode, output the lines and also run them
trigger.sh -v -w Mozilla F6 ctrl+a p i z z a Return
trigger.sh -v -w Mozilla ctrl+r -r 10 -d 5000
trigger.sh -v -p 100,200 click -r 10 -d 1000
trigger.sh -v wdown -r 30 -d 300
xdotool
must be installed