Replace pass with keepassxc

This commit is contained in:
Tobias Reisinger 2021-12-21 12:13:11 +01:00
parent be08b1d94b
commit d7228bcfb0
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 64 additions and 19 deletions

View file

@ -13,11 +13,17 @@ def init(c):
c.bind(',rt', 'open {url:scheme}://reddit.tube{url:path}{url:query}')
c.bind(',s', 'spawn steam steam://openurl/{url}')
pass_script_default = 'spawn --userscript qute-pass --no-insert-mode --username-target secret --username-pattern "login: (.+)" '
c.bind(',p', pass_script_default)
c.bind(',Pu', pass_script_default + '--username-only')
c.bind(',Pi', pass_script_default + '--password-only')
c.bind(',Po', pass_script_default + '--otp-only')
gpg_key = '723B78C0BF8D8C721D2C4EEF41E544A54E2533B2'
#c.bind(',Pp', 'spawn --userscript qute-keepassxc --key ABC1234', mode='insert')
c.bind(',p', 'spawn --userscript qute-keepassxc --key ' + gpg_key, mode='normal')
c.bind(',Po', 'spawn --userscript qute-keepassxc --otp --key ' + gpg_key, mode='normal')
#pass_script_default = 'spawn --userscript qute-pass --no-insert-mode --username-target secret --username-pattern "login: (.+)" '
#c.bind(',p', pass_script_default)
#c.bind(',Pu', pass_script_default + '--username-only')
#c.bind(',Pi', pass_script_default + '--password-only')
#c.bind(',Po', pass_script_default + '--otp-only')
c.bind(',q', 'spawn --userscript qr {url}')
c.bind(',Q', 'hint links spawn --userscript qr {hint-url}')