From 40827ad5ed84b55030fb771376e5dda2efc3ee2b Mon Sep 17 00:00:00 2001 From: tavo Date: Sun, 5 Jan 2025 12:31:16 -0600 Subject: [PATCH] pass --- scripts/dwm/dwmpass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/dwm/dwmpass b/scripts/dwm/dwmpass index eba1946..51cc730 100755 --- a/scripts/dwm/dwmpass +++ b/scripts/dwm/dwmpass @@ -3,5 +3,8 @@ PASSWORD_STORE_DIR="$HOME/.local/share/password-store" GNUPGHOME="$HOME/.local/share/gnupg" password="$(~/.config/scripts/menu/menu-pass)" -[ -z "$password" ] && exit +if [ "$?" != 0 ] || [ -z "$password" ] ; then + exit 1 +fi + xdotool type $(pass "$password" | head -n 1)