Created
August 9, 2018 21:00
-
-
Save hectorm/806124b6ddbe14327c45dbd28cdf7f46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eu | |
sleep -- "${1:-5}" | |
xdotool type --delay 50 -- "$(xsel -bo | tr \\n \\r | sed s/\\r*\$//g)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment