[qutebrowser] Add shortcut to generate a new username for gopass

This commit is contained in:
Sebastian Schulze 2023-08-09 08:41:54 +02:00
parent 3450a97dd3
commit a5ef5b6cca
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
DOMAIN=$(echo ${1} | awk -F[/:] '{print $4}')
USER="${DOMAIN}@bascht.com"
notify-send "Copied username to clipboard" "${USER}"
echo "${USER}" | wl-copy

View File

@ -93,6 +93,7 @@ config.bind('<z><o><l>', 'spawn --userscript qute-pass --mode gopass --username-
config.bind('ygs', 'spawn get-gitlab-shortcode {url}')
config.bind('ygm', 'spawn get-gitlab-shortcode-as-markdown {url}')
config.bind('ygd', 'spawn qutebrowser-generate-gopass-username {url}')
# per Domain settings