Home

Awesome

kpxhs

commits since status

Keepass database interactive TUI viewer based on keepassxc-cli

unlock

browser1

countdown

footer

entry

searching

browser2

clear_clip

Features

Why

* If you want non-interactive (for scripting etc), just use keepassxc-cli directly

Usage requirements

You need to install keepassxc with keepassxc-cli and have it available in PATH. Versions 2.6.4 to 2.7.4 are known to work, but previous versions should still work if they're not too old.

Installing

Install using pre-compiled binary

Just go to the releases page and grab the latest binary for your OS. Only UNIX (linux and macos) is supported. Binaries are compiled and uploaded using Github actions

Build from source using Stack

No superuser permissions are needed (unless if you need to install stack itself)

  1. git clone https://github.com/akazukin5151/kpxhs
  2. cd kpxhs
  3. Optional: git checkout your desired stable version tag (otherwise you will be using the unstable master branch)
  4. make build (compile)
  5. make install (move binary to ~/.local/bin/)

The binary size can be reduced by enabling dynamic linking: add the-dynamic flag to ghc-options in kpxhs.cabal.

Manual (Usage, Configuration, Theming)

$ kpxhs -h
kpxhs - Interactive Keepass database TUI viewer
  Usage
    kpxhs                   Start the program
    kpxhs [-v | --version]  Print the version number
    kpxhs [-h | --help]     Show this help
    kpxhs --write-config    Write the default configs to ~/.config/kpxhs/

  TUI keybindings (in general)
    Esc                     Quit, back (elsewhere)
    q                       Quit, back (in browser)
    Tab                     Cycle focus
    /                       Search (filter) items
    Enter                   Show entry details
    u                       Copy username
    p                       Copy password

  Navigation ([n] means optional digit)
    [n]j, [n]s              Move down n items (default: 1)
    [n]k, [n]w              Move up n items   (default: 1)
    g                       Move to top
    G                       Move to bottom
    q                       Page up
    e                       Page down

Read the man page for more details. The rendered markdown is available online at https://github.com/akazukin5151/kpxhs/blob/master/docs/out/kpxhs.1.md

Alternatively, it can be installed for offline reading manually. No superuser permissions are required. Copy the pre-built man page in docs/out/kpxhs.1 to somewhere in your manpath (eg, ~/.local/share/man/man1/). View with man kpxhs.

The man page can also be manually built with cd docs && make and installed with make copy. pandoc is required for this manual build. For the whatis program to work with kpxhs, refresh the mandb with mandb after make copy

License

GPLv3 or later