Last active
September 16, 2015 12:39
-
-
Save seqizz/0939b374098d2306c709 to your computer and use it in GitHub Desktop.
Generate random & paste
This file contains 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/bash | |
# RANDOM GULME SCRIPTI | |
# DEPS: xclip & xte (xautomation) | |
#!/bin/bash | |
len=`echo $((RANDOM%7+2))` | |
prefix=`< /dev/urandom tr -dc asdf | head -c 4` | |
devam=`< /dev/urandom tr -dc a-zA-Z0-9 | head -c $len` | |
echo -n $prefix$devam | xclip -selection c | |
sleep 0.15 | |
xte 'keydown Control_L' 'keydown Shift_L' 'key v' 'keyup Control_L' 'keyup Shift_L' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment