~palb91/bwm

ref: b8eca8dd492ca304e0d861f23f7fc49cf3924746 bwm/README.rst -rw-r--r-- 1.8 KiB
b8eca8dd — Pierre-Albéric TROUPLIN fix: dirty fix for keymap 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
``bwm``
#######

    :Author:       palb91
    :License:      MIT
    :Description:  Type a password from bitwarden in a Wayland environment
    :Dependancies: - bitwarden-cli_;
                   - wtype_;
                   - bemenu_;
                   - wl-clipboard_ (optional).

::

    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`):

.. code:: python

    # 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')


.. _qutebrowser:  https://github.com/qutebrowser/qutebrowser
.. _wtype:        https://github.com/atx/wtype
.. _bemenu:       https://github.com/Cloudef/bemenu
.. _wl-clipboard: https://github.com/bugaevc/wl-clipboard