Skip to content

natrys/keepassxc-dmenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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

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

Commentary

https://imrankhan.live/post/system/rofi-interface-for-keepassxc/

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages