No description
Find a file
Imran Khan 79ff73bcd0 Fixed an insidious error mode
Instead of doing the sane thing and considering actual error code,
turns out that Tcl's exec considers anything written to stderr to be
an error:

> If any of the commands writes to its standard error file and that
> standard error isn't redirected, then exec will return an error; the
> error message will include the pipeline's standard output, followed
> by messages about abnormal terminations (if any), followed by the
> standard error output.

So when following an update to system fontconfig, rofi started
printing this to the stderr (but only randomly):

> Fontconfig warning: using without calling FcInit()

This program also started to randomly fail, leading to some
baffling moments.
2026-05-16 04:35:49 +06:00
keepassxc-dmenu Fixed an insidious error mode 2026-05-16 04:35:49 +06:00
LICENSE Add License 2020-03-30 13:18:28 +00:00
README.org feat: Add kpxc_args config option to handle keyfile 2025-10-11 10:27:45 +03:30

Description

Sift through keepassxc database entries and autotype the password directly in the input form with a hotkey.

Requirements

  • keepassxc-cli (comes with default install; minimum version requirement >= 2.5.0)
  • Tcl + Expect
  • dmenu or rofi (default)
  • xdotool
  • Graphical pinentry (default is pinentry-qt)
  • Inability to figure out the browser plugin
  • Not have Mossad as enemy

Usage

Provide a config file at ~/.config/keepassxc-dmenu/config which should contain at least kp_database_path variable. This is just a tcl file which will be sourced. An example:

set kpxc_database_path $::env(HOME)/Passwords.kdbx
set kpxc_dmenu {rofi -dmenu -no-custom -i}
set kpxc_pinentry /usr/bin/pinentry-qt
# set kpxc_timeout 60
# set kpxc_args -k /path/to/keyfile

This is primarily meant to be invoked by pressing hotkey (either configured in the DE, or in a hotkey daemon such as sxhkd). An example for sxhkd may look:

super + p
  keepassxc-dmenu

# optionally
super + alt + p
  pkill -x keepassxc-dmenu