Skip to content

Instantly share code, notes, and snippets.

Created Nov 24, 2017
What would you like to do?
StumpWM integration with password store, aka "pass"
(defun pass-entries ()
(let* ((home (merge-pathnames #p".password-store/" (user-homedir-pathname)))
(home-ns-len (length (namestring home))))
(lambda (entry)
(let ((entry-ns (namestring entry)))
(subseq entry-ns home-ns-len (- (length entry-ns) 4))))
(directory (make-pathname :directory `(,@(pathname-directory home)
:name :wild
:type "gpg")))))
(defcommand pass-into-clipboard () ()
"Put a password into the clipboard."
(let ((entry (completing-read (current-screen)
"entry: "
(run-shell-command (format nil "pass -c ~a" entry))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment