Skip to content

Instantly share code, notes, and snippets.

@seqizz
Last active September 16, 2015 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seqizz/0939b374098d2306c709 to your computer and use it in GitHub Desktop.
Save seqizz/0939b374098d2306c709 to your computer and use it in GitHub Desktop.
Generate random & paste
#!/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