I wanted it to "type" a frequently-used message into an edit-box in the browser (Pale Moon) when the 'media' key was pressed.MochiMoppel wrote:I suspected a timing problem and created a second icon, this time with a 1 sec delay before executing xdotool. This time the keyboard shortcut worked.
My first attempt dropped the first few characters (unpredictably).
Current version is
Code: Select all
#!/bin/sh
sleep 0.2
xdotool type --delay 100 'frequently used message'