From d6f0f86e9fdcfa2b752adcb22c8c241f7fa376d3 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Sat, 8 Jun 2024 11:02:27 +0200 Subject: [PATCH] fix fzf password script --- bin/fzf-pass-inner.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/fzf-pass-inner.sh b/bin/fzf-pass-inner.sh index 63513da..9d41f40 100755 --- a/bin/fzf-pass-inner.sh +++ b/bin/fzf-pass-inner.sh @@ -5,10 +5,7 @@ if [ -z "$ENTRY" ]; then exit 1 fi PASSENTRY=$(pass "$ENTRY") -(builtin echo "$PASSENTRY" | head -n1 | nohup wl-copy -f -n --sensitive) & -WLCOPY_PID=$! -disown -h -nohup bash -c "sleep 30s; kill $WLCOPY_PID" & +(builtin echo "$PASSENTRY" | head -n1 | timeout 30 wl-copy -f -n --sensitive) & disown -h NOTIFICATION=$(builtin echo "$PASSENTRY" | sed 1d)