dmenu-scripts/dmenu-keepassxc

10 lines
347 B
Plaintext
Raw Normal View History

2022-12-26 12:16:57 +01:00
#!/bin/sh
# Simple dmenu script to ask for keepassxc database password, and get the password of asked account
db=$(grep database ~/.config/dmenu-keepassxc/config | cut -d: -f 2)
kf=$(grep keyfile ~/.config/dmenu-keepassxc/config | cut -d: -f 2)
dmenu -P -p "Enter KeePassXC database password" | keepassxc-cli show -sa password -k $kf $db "$@"