Using a keyboard shortcut to paste text

To paste a single string into a textfield

  1. install both xdotool and xclip:

    sudo apt-get install xdotool xclip
    
  2. Add the following command to a shortcut key:

    /bin/bash -c "sleep 0.5 && printf '[email protected]' | xclip -selection clipboard && xdotool key Control_L+v"
    

    Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command above to a key combination of your choice.

Now when enter the cursor in a textfield and choose your shortcut, it will type your email address.