1
0
Fork 0
No description
Find a file
RBO dd79e29c91 Fix variables
Signed-off-by: RBO <drain+git@rbo.wf>
2025-05-28 20:08:52 +02:00
keepassxc-wmenu Fix variables 2025-05-28 20:08:52 +02:00
LICENSE Add License 2020-03-30 13:18:28 +00:00
README.org Implement to wmenu 2025-05-07 20:36:31 +02:00

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
  • wmenu 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-wmenu/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_wmenu {wofi -dmenu -i}
set kpxc_pinentry /usr/bin/pinentry-qt
# set kpxc_timeout 60

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
  [ -e /tmp/keepassxc-wmenu/run ] && echo y > /tmp/keepassxc-wmenu/run || keepassxc-wmenu >/dev/null 2>&1

super + alt + p
  echo exit > /tmp/keepassxc-wmenu/run