From: Maximilian Friedersdorff Date: Thu, 4 May 2023 12:23:26 +0000 (+0100) Subject: Fix the qutebrowser/bitwarden integration X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=f4bc3dd2b16222cd4ca2ff454765735b536443ea;p=max%2Fsaltfiles.git Fix the qutebrowser/bitwarden integration --- diff --git a/states/qutebrowser/files/config.py b/states/qutebrowser/files/config.py index 78ebb76..60d518f 100644 --- a/states/qutebrowser/files/config.py +++ b/states/qutebrowser/files/config.py @@ -27,9 +27,9 @@ c.content.headers.custom = {'accept': 'text/html,application/xhtml+xml,applicati {% endif %} config.bind(',zl', "spawn --userscript qute-bitwarden-personal --auto-lock 14400 --dmenu-invocation 'rofi -dmenu'") -config.bind(',zul', "spawn --userscript qute-bitwarden-personal --auto-lock 14400--dmenu-invocation 'rofi -dmenu' --username-only") -config.bind(',zpl', "spawn --userscript qute-bitwarden-personal --auto-lock 14400--dmenu-invocation 'rofi -dmenu' --password-only") -config.bind(',zol', "spawn --userscript qute-bitwarden-personal --auto-lock 14400--dmenu-invocation 'rofi -dmenu' --totp-only") +config.bind(',zul', "spawn --userscript qute-bitwarden-personal --auto-lock 14400 --dmenu-invocation 'rofi -dmenu' --username-only") +config.bind(',zpl', "spawn --userscript qute-bitwarden-personal --auto-lock 14400 --dmenu-invocation 'rofi -dmenu' --password-only") +config.bind(',zol', "spawn --userscript qute-bitwarden-personal --auto-lock 14400 --dmenu-invocation 'rofi -dmenu' --totp-only") config.bind(',bl', 'spawn --userscript qute-bitwarden-work --auto-lock 14400 --dmenu-invocation "rofi -dmenu"') config.bind(',bul', 'spawn --userscript qute-bitwarden-work --auto-lock 14400 --dmenu-invocation "rofi -dmenu" --username-only') diff --git a/states/qutebrowser/files/qute-bitwarden-personal b/states/qutebrowser/files/qute-bitwarden-personal index 1391183..7f4b62a 100755 --- a/states/qutebrowser/files/qute-bitwarden-personal +++ b/states/qutebrowser/files/qute-bitwarden-personal @@ -1,3 +1,4 @@ #!/bin/sh -BITWARDEN_APPDATA_DIR=~/.config/bitwarden_personal /usr/share/qutebrowser/userscripts/qute-bitwarden "$@" +ln -sf bitwarden_personal "$HOME/.config/Bitwarden CLI" +/usr/share/qutebrowser/userscripts/qute-bitwarden "$@" diff --git a/states/qutebrowser/files/qute-bitwarden-work b/states/qutebrowser/files/qute-bitwarden-work index 4c15547..1d68003 100755 --- a/states/qutebrowser/files/qute-bitwarden-work +++ b/states/qutebrowser/files/qute-bitwarden-work @@ -1,3 +1,4 @@ #!/bin/sh -BITWARDEN_APPDATA_DIR=~/.config/bitwarden_work /usr/share/qutebrowser/userscripts/qute-bitwarden "$@" +ln -sf bitwarden_work "$HOME/.config/Bitwarden CLI" +/usr/share/qutebrowser/userscripts/qute-bitwarden "$@"