password.lisp 499 B

1234567891011121314
  1. (in-package :stumpwm)
  2. (defun password-store-show (password)
  3. (run-shell-command (format nil "gpg -d ~a/.password-store/~a.gpg 2>/dev/null"
  4. (getenv "HOME") password)
  5. t))
  6. (defcommand passmenu () ()
  7. (run-shell-command "/home/oleg/.local/share/chezmoi/dot_local/bin/executable_passmenu"))
  8. (defcommand random-password (length) ((:string "Password length: "))
  9. (window-send-string (run-shell-command (format nil "bash -i -c 'random-password ~a'" length) t)))