develop: switch to using gopass
This commit is contained in:
parent
63b4e06098
commit
5620569852
6
overlays/qutebrowser.nix
Normal file
6
overlays/qutebrowser.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
final: prev: {
|
||||
qutebrowser = prev.qutebrowser.overrideAttrs
|
||||
(o: {
|
||||
patches = o.patches ++ [ ../profiles/graphical/qutebrowser/0001-Fix-gopass-mime-format-for-qute-pass-userscript.patch ];
|
||||
});
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, ... }: {
|
||||
imports = [ ./zsh ./kakoune ./tmux ];
|
||||
|
||||
environment.shellAliases = { v = "$EDITOR"; };
|
||||
environment.shellAliases = { v = "$EDITOR"; pass = "gopass"; };
|
||||
|
||||
environment.sessionVariables = {
|
||||
PAGER = "less";
|
||||
|
@ -18,7 +18,7 @@
|
|||
gnupg
|
||||
less
|
||||
ncdu
|
||||
pass
|
||||
gopass
|
||||
tig
|
||||
tokei
|
||||
wget
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
From 3284ec900e42b279bc3bc40593d7356ab1e3f9b0 Mon Sep 17 00:00:00 2001
|
||||
From: Timothy DeHerrera <tim.deh@pm.me>
|
||||
Date: Mon, 21 Dec 2020 02:50:55 -0700
|
||||
Subject: [PATCH] Fix gopass mime format for qute-pass userscript
|
||||
|
||||
---
|
||||
misc/userscripts/qute-pass | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/misc/userscripts/qute-pass b/misc/userscripts/qute-pass
|
||||
index b49e87dd8..388a7a737 100755
|
||||
--- a/misc/userscripts/qute-pass
|
||||
+++ b/misc/userscripts/qute-pass
|
||||
@@ -152,6 +152,8 @@ def _run_pass(pass_arguments):
|
||||
|
||||
|
||||
def pass_(path):
|
||||
+ if arguments.mode == "gopass":
|
||||
+ return _run_pass(['show', '-o', path])
|
||||
return _run_pass(['show', path])
|
||||
|
||||
|
||||
--
|
||||
2.29.2
|
||||
|
|
@ -263,7 +263,7 @@ for mode in\
|
|||
config.bind('<Alt+j>', 'leave-mode', mode=mode)
|
||||
|
||||
# Bindings for normal mode
|
||||
config.bind(',p', 'spawn --userscript qute-pass')
|
||||
config.bind(',p', 'spawn --userscript qute-pass -M gopass')
|
||||
config.bind(',P', 'set-cmd-text -s :open -p')
|
||||
config.bind(',r', 'restart')
|
||||
config.bind(',c', 'config-source')
|
||||
|
|
Loading…
Reference in a new issue