From 35002770b82610614c40d5e7ce39d608be838858 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sat, 6 Aug 2022 01:01:19 +0000 Subject: [PATCH] backout fc3171ae5e8ee9cd5e687997855800e358721b1a timeout(1) isn't interruptible, and it fires while you're entering your key's passphrase, giving a subpar UX. --- bin/sekrit.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/sekrit.sh b/bin/sekrit.sh index 7b6a0b0..63ddc4e 100644 --- a/bin/sekrit.sh +++ b/bin/sekrit.sh @@ -109,14 +109,8 @@ sekrit_cp() key=$1 path=$(make_key_path "$key") [ -f "$path" ] || err "no data for key $key" - - timo= - if command -v timeout >/dev/null 2>&1; then - timo="timeout 10" - fi - _sekrit_decrypt "$path" | - $timo xclip $rmlastnl -loops 1 -quiet -selection clip 2>/dev/null + xclip $rmlastnl -loops 1 -quiet -selection clip 2>/dev/null } sekrit_gen()