-
Notifications
You must be signed in to change notification settings - Fork 1
Configuring
This page provides instructions on how to configure BashPass using its configuration file.
By default, BashPass will look for a configuration file in ~/.config/bashpass/bashpass.conf
.
If the file is not found, BashPass will use the default settings.
location: .local/share/bashpass
timer: 10
length: 14
You can configure BashPass by editing the configuration file. The configuration file is a simple text file that contains the following settings:
Upon first use, BashPass will ask you to provide your GnuPG key ID and will store it in the configuration file.
In order to make BashPass work, you need to provide your GnuPG key ID.
This can be done by adding an entry to the configuration, using keyID
as the key and your GnuPG key ID as the value.
The key ID of a GnuPG key is the last 8 characters of the key fingerprint.
For example, using 12345678
as the ID will look like this:
keyID: 12345678
BashPass allows you to set a default password length, which it will use when generating passwords.
Out of the box, BashPass will generate passwords with a length of 14
characters.
Once set, you can still override this value when generating passwords.
For example, to change the default password length to 16
, you can add the following entry to the configuration file:
length: 16
BashPass will store all password files in a specified location, also known as the password store.
This location must be present in your home directory (~
).
By default, the password store is located in ~/.local/share/bashpass
.
For example, to change the passowrd store location to ~/.passwords
, you can add the following entry to the configuration file:
Note: The password store location may not include the ~
character. As its added by BashPass.
location: .passwords
When using the -c
or --copy
option, BashPass will clear the clipboard after a specified amount of time.
This time is specified in seconds, and defaults to 10
seconds.
However, adding an timer
entry to the configuration file will allow you to change the default value.
For example, to change the default timer to 5
seconds, you can add the following entry to the configuration file:
timer: 5
Didn't find what you were looking for, feel free to create a issue.