My scripts for startup, dmenu, and the command line
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
226 B

  1. #!/bin/sh
  2. password() {
  3. tr -d '\n' < /dev/urandom | fold -w30 | head -n1
  4. }
  5. password_easy() {
  6. tr -cd '[:alnum:]' < /dev/urandom | fold -w20 | head -n1
  7. }
  8. case $1 in
  9. password) password;;
  10. *) printf "Invalid argument";;
  11. esac