dotfiles/scripts/dwm/dwmpass
2025-01-05 12:31:16 -06:00

10 lines
256 B
Bash
Executable file

#!/bin/sh
PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
GNUPGHOME="$HOME/.local/share/gnupg"
password="$(~/.config/scripts/menu/menu-pass)"
if [ "$?" != 0 ] || [ -z "$password" ] ; then
exit 1
fi
xdotool type $(pass "$password" | head -n 1)