From 1423d33513af42e3f24456f47ee5bfc0472beb58 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 15 Feb 2022 20:16:30 +0100 Subject: [PATCH] [Qutebrowser] qute-keepassxc bindings according to host 'knuth' is my work machine --- qutebrowser/config.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/qutebrowser/config.py b/qutebrowser/config.py index c2a526d..19aec59 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -1,3 +1,5 @@ +import os + # Autogenerated config.py # Documentation: # qute://help/configuring.html @@ -525,8 +527,12 @@ c.fonts.default_family = 'JetBrains Mono' c.fonts.default_size = '12pt' # Setup for KeePassXC connection. -config.bind('', 'spawn --userscript qute-keepassxc --key 9FE01C39F74551D434116394CADE6F0C09F21B09', mode='insert') -config.bind('pw', 'spawn --userscript qute-keepassxc --key 9FE01C39F74551D434116394CADE6F0C09F21B09', mode='normal') +if os.getenv('HOST') == 'knuth': + config.bind('', 'spawn --userscript qute-keepassxc --key CBE2FD999353DFA90822A2FAD61E7E81C796B99E', mode='insert') + config.bind('pw', 'spawn --userscript qute-keepassxc --key CBE2FD999353DFA90822A2FAD61E7E81C796B99E', mode='normal') +else: + config.bind('', 'spawn --userscript qute-keepassxc --key 9FE01C39F74551D434116394CADE6F0C09F21B09', mode='insert') + config.bind('pw', 'spawn --userscript qute-keepassxc --key 9FE01C39F74551D434116394CADE6F0C09F21B09', mode='normal') # Set Emacs as editor c.editor.command = ["es", "+{line}:{column0}", "{file}"]