~palb91/bwm

bwm/README.md -rw-r--r-- 1.6 KiB
98931a6d — Pierre-Albéric TROUPLIN feat: qutebrowser flag, xdotool -> xvkbd and more 6 months ago

#bwm

Type a password from bitwarden in a Wayland environment.

Usage:
    bwm [ -h ]
    bwm [ -u | -b | -o ] [URL]
    bwm -c [ -u | -o ] [URL]

Options:
    -u, --user  Type the username instead of the password.
    -b, --both  Type the username and the password separated by a <Tab>.
    -o, --otp   Type the otp code if exists.
    -c, --copy  Copy instead of type.
    -h, --help  Print this help.

Argument:
    URL         If any, must be the last parameter. bwm will try to find only
                matching values from `bw`.

#Note

I mostly use it with qutebrowser.

I set up qutebrowser as follow (bwm should be in your $PATH):

# in config.py
config.bind('<Alt-p>', 'mode-enter insert ;; spawn -- bwm {url}')
config.bind('<Alt-u>', 'mode-enter insert ;; spawn -- bwm -u {url}')
config.bind('<Alt-l>', 'mode-enter insert ;; spawn -- bwm -b {url}')
config.bind('<Alt-o>', 'mode-enter insert ;; spawn -- bwm -o {url}')
config.bind('<Alt-p>', 'spawn -- bwm    {url}', mode='insert')
config.bind('<Alt-u>', 'spawn -- bwm -u {url}', mode='insert')
config.bind('<Alt-l>', 'spawn -- bwm -b {url}', mode='insert')
config.bind('<Alt-o>', 'spawn -- bwm -o {url}', mode='insert')