7522dc848431

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 11 Jun 2019 12:50:14 -0400
parents 9861ccaa4679
children df8c563e928a
branches/tags (none)
files stumpwmrc

Changes

--- a/stumpwmrc	Tue Jun 11 11:55:25 2019 -0400
+++ b/stumpwmrc	Tue Jun 11 12:50:14 2019 -0400
@@ -302,6 +302,10 @@
         (pass:*pass-notification-message* t))
     (pass:pass-copy)))
 
+(defcommand generate-password () ()
+  (run-shell-command "genpass | pbc")
+  (message "Generated a fresh password and copied it to the clipboard."))
+
 ;; (defcommand pass-work () ()
 ;;   (let ((pass:*password-store* "/home/sjl/.password-store-work/")
 ;;         (pass:*pass* "/home/sjl/src/dotfiles/bin/pass-work"))
@@ -419,6 +423,7 @@
   ("H-SunPageDown" "st-font-down")
   ("H-Home" "st-font-reset")
   ("H-\\" "pass-personal")
+  ("H-|" "generate-password")
   ("H-b" "browser")
   ("H-B" "exec firefox")
   ("H-o" "spotify")