Skip to content

keepass Segment

Description

This segment show the value of variable KEEPASS_NAME when this one is set to inform me when I have some keepass variables loaded to access my keepass database from CLI.

I have my own wrapper around keepassxc-cli to use these keepass variables which is stored in tools/keepass. If you want to use it, you are free to do so. You can put in your a folder in your PATHto be able to use it anywhere.

Variables used by the script tools/keepass are automatically set using direnv.

To see how to use direnv for your folder, see Using direnv to setup environment-variables

This segment is only shown when global shell environment variable KEEPASS_NAME exists and is not empty.

Requirements

This segment has no requirement as it only show value of variable KEEPASS_NAME.

But if you wish to use it with the script provided, you may require keepassxc to have the command keepassxc-cli.

Variables

Variables Default Description
KEEPASS_CHAR Character to show before the segment content
KEEPASS_FG white Foreground color of segment
KEEPASS_BG black Background color of segment, only used by v2

Examples

Prompt v1 Prompt v2
Full Version
keepass v1 full
keepass v2 full
Maximum Short Version
keepass v1 short
keepass v2 short


Last update: December 2, 2021
Back to top