summaryrefslogtreecommitdiff
path: root/.config/nyxt/passwd.lisp
diff options
context:
space:
mode:
Diffstat (limited to '.config/nyxt/passwd.lisp')
-rw-r--r--.config/nyxt/passwd.lisp14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/nyxt/passwd.lisp b/.config/nyxt/passwd.lisp
new file mode 100644
index 0000000..8fc56fe
--- /dev/null
+++ b/.config/nyxt/passwd.lisp
@@ -0,0 +1,14 @@
+(in-package #:nyxt-user)
+
+(defmethod initialize-instance :after ((interface password:keepassxc-interface) &key &allow-other-keys)
+ "I use KeePassXC, and this simply sets the location of the password files."
+ (setf (password:password-file interface) "/home/aartaka/Documents/p.kdbx"))
+
+(define-configuration :password-mode
+ "This is to emphasize that I use KeePassXC.
+Nyxt is (was?) not always smart enough to guess that."
+ ((password-interface (make-instance 'password:keepassxc-interface))))
+
+(define-configuration :buffer
+ ((default-modes (append `(:password-mode) %slot-value%))))
+