swee

swee / clipboard_pass.py

Last active 4 months ago

Like 0

swee revised this gist 4 months ago · a4cb9d1

1 file changed, 6 insertions

clipboard_pass.py (file created)
@@ -0,0 +1,6 @@
1 + import subprocess
2 + import secrets
3 + import string
4 + alphabet = string.ascii_letters + string.digits
5 +
6 + subprocess.run(["wl-copy"], input=(''.join(secrets.choice(alphabet) for i in range(20))).encode("UTF-8"))