GithubHelp home page GithubHelp logo

endreszabo / passdmenu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from klaasb/passdmenu

1.0 1.0 0.0 40 KB

A dmenu frontend to pass with clipboard and autotype functionality for user and password.

License: ISC License

Python 100.00%

passdmenu's Introduction

passdmenu

A small python frontend to pass wrapping dmenu.

Currently only tested with Python 3.4.

Example usage as i3 keybindings:

bindsym $mod+Shift+i exec passdmenu.py -P
bindsym $mod+Mod1+i exec passdmenu.py -uPt

Help:

usage: passdmenu.py [-h] [-c] [-t] [-r] [-u [GET_USER]] [-P] [-s STORE]
                    [-d XDO_DELAY] [-f FILTER] [-B PASS_BIN] [-D DMENU_BIN]
                    [-x XSEL] [-e EXECUTE]

A dmenu frontend to pass. All passed arguments not listed below, are passed to
dmenu. If you need to pass arguments to dmenu which are in conflict with the
options below, place them after --. Requires xclip in default 'copy' mode.

optional arguments:
  -h, --help            show this help message and exit
  -c, --copy            Use xclip to copy the username and/or password into
                        the primary/specified xselection(s). This is the
                        default mode.
  -t, --type            Use xdotool to type the username and/or password into
                        the currently active window.
  -r, --return          Presses "Return" after typing. Forces --type.
  -u [GET_USER], --user [GET_USER]
                        Copy/type the username, possibly search by given
                        python regex pattern that must include a group (the
                        user part). Example pattern: '^user: (.*)' If second
                        line of gpg file is blank or the argument 'filename'
                        is given then gpg filename is used as username.
  -P, --pw              Copy/type the password. Default, use -u -P to copy
                        both username and password.
  -s STORE, --store STORE
                        The path to the pass password store. Defaults to
                        ~/.password-store
  -d XDO_DELAY, --delay XDO_DELAY
                        The delay between keystrokes. Defaults to xdotool's
                        default.
  -f FILTER, --filter FILTER
                        A regular expression to filter pass filenames.
  -B PASS_BIN, --pass PASS_BIN
                        Defaults to /usr/bin/pass
  -D DMENU_BIN, --dmenu DMENU_BIN
                        Defaults to /usr/bin/dmenu
  -x XSEL, --xsel XSEL  The X selections into which to copy the
                        username/password. Possible values are comma-separated
                        lists of prefixes of: primary, secondary, clipboard.
                        E.g. -x p,s,c. Defaults to primary.
  -e EXECUTE, --execute EXECUTE
                        The path to a command to execute. The whole content of
                        the decrypted gpg file from pass is provided to it on
                        standard input. The full password name (within the
                        store) is provided as first parameter. Arguments -s
                        and -f are forwarded as parameters.The command is
                        executed in addition to and after specified -t, -c
                        options are handled.

passdmenu's People

Contributors

klaasb avatar lubgr avatar narrat avatar

Stargazers

Krisztian CSANYI avatar

Watchers

Endre Szabo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.