[Qutebrowser] qute-keepassxc bindings according to host

'knuth' is my work machine
This commit is contained in:
Marcel Kapfer 2022-02-15 20:16:30 +01:00
parent d043b0455c
commit 1423d33513
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -1,3 +1,5 @@
import os
# Autogenerated config.py
# Documentation:
# qute://help/configuring.html
@ -525,6 +527,10 @@ c.fonts.default_family = 'JetBrains Mono'
c.fonts.default_size = '12pt'
# Setup for KeePassXC connection.
if os.getenv('HOST') == 'knuth':
config.bind('<Alt-Shift-u>', 'spawn --userscript qute-keepassxc --key CBE2FD999353DFA90822A2FAD61E7E81C796B99E', mode='insert')
config.bind('pw', 'spawn --userscript qute-keepassxc --key CBE2FD999353DFA90822A2FAD61E7E81C796B99E', mode='normal')
else:
config.bind('<Alt-Shift-u>', 'spawn --userscript qute-keepassxc --key 9FE01C39F74551D434116394CADE6F0C09F21B09', mode='insert')
config.bind('pw', 'spawn --userscript qute-keepassxc --key 9FE01C39F74551D434116394CADE6F0C09F21B09', mode='normal')