about summary refs log tree commit diff
path: root/init/nixos.el
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-06-06T07·46+0200
committerVincent Ambo <mail@tazj.in>2018-06-06T07·46+0200
commit66e86d2546c8abdc22cc7333e85e50eef3408c3d (patch)
tree8364fee63c818f159ddb117e15eb1e8b13f73ddf /init/nixos.el
parentbe8d47257f1fa60e63e4ea6e76502011067a515d (diff)
feat(functions): Add custom ivy-password-store function
The default `ivy-pass` function shells out to `pass` in such a way
that using pinentry with emacs doesn't work, causing EXWM to freeze
until `C-g` is hit, after which the password entry buffer pops up.

That was very inconvenient - however, the new auth-source integration
with pass works correctly and this commit introduces a new function
and bindings for using the same functionality as before but doing the
actual password-reading via auth-source.
Diffstat (limited to 'init/nixos.el')
-rw-r--r--init/nixos.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/init/nixos.el b/init/nixos.el
index a75695d0c8e3..431ba705c3bc 100644
--- a/init/nixos.el
+++ b/init/nixos.el
@@ -65,7 +65,10 @@
 
       ;; Launch applications with completion (dmenu style!)
       (exwm-input-set-key (kbd "s-d") #'ivy-run-external-command)
-      (exwm-input-set-key (kbd "s-p") #'ivy-pass)
+      (exwm-input-set-key (kbd "s-p") #'ivy-password-store)
+      (exwm-input-set-key (kbd "C-s-p") '(lambda ()
+                                           (interactive)
+                                           (ivy-password-store "~/.aprila-secrets")))
 
       ;; Toggle between line-mode / char-mode
       (exwm-input-set-key (kbd "C-c C-t C-t") #'exwm-input-toggle-keyboard)