about summary refs log tree commit diff
path: root/home/profiles/browsing
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-12-21 22:08:26 +0900
committersefidel <contact@sefidel.net>2023-12-21 22:08:26 +0900
commit9376b78f49fff4227bf10ef62d8ca4bfea68b37f (patch)
tree17cfc647d8441ea330f34d9da1fda75ad75b24c1 /home/profiles/browsing
parent75744200e58cc08d57f0fc88c6e2305d69eb3df0 (diff)
downloadnixrc-9376b78f49fff4227bf10ef62d8ca4bfea68b37f.tar.gz
nixrc-9376b78f49fff4227bf10ef62d8ca4bfea68b37f.zip
feat(home/browsing): add bitwarden to qutebrowser
Diffstat (limited to 'home/profiles/browsing')
-rw-r--r--home/profiles/browsing/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/home/profiles/browsing/default.nix b/home/profiles/browsing/default.nix
index 5c04438..6a59d1b 100644
--- a/home/profiles/browsing/default.nix
+++ b/home/profiles/browsing/default.nix
@@ -3,6 +3,8 @@ let
   cfg = config.profiles.browsing;
 
   fixSopsPrefix = x: y: builtins.replaceStrings [ "%r" ] [ "/run/user/${toString x}" ] y;
+
+  bemenuPrompt = "${pkgs.bemenu}/bin/bemenu -H 18 -l 5 -c -W 0.4 -B 3";
 in
 {
   options.profiles.browsing = {
@@ -43,6 +45,12 @@ in
         sourcehut = "https://sr.ht";
       };
 
+      keyBindings = {
+        normal = {
+          "<Ctrl+L>" = "spawn --userscript qute-bitwarden -d='${bemenuPrompt} -p \"Bitwarden\"' -p='${bemenuPrompt} -p \"Bitwarden Master Passphrase Entry\" --password'";
+        };
+      };
+
 
       settings = import ./qutebrowser-settings.nix // {
         url.default_page = "https://kagi.com";