commit 142c42c7deee22014fea54eb2ff37972a6ee23f5
parent 9be03f7601428c68a40bd457c000329e2ad41314
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date: Sat, 22 Mar 2014 00:07:04 -0600
clip: use pkill instead of proc
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/password-store.sh b/src/password-store.sh
@@ -117,7 +117,7 @@ clip() {
# we're going with this for now.
sleep_argv0="password store sleep on display $DISPLAY"
- kill -9 $(grep -l -r --include="cmdline" "^$sleep_argv0" /proc/ 2>/dev/null | sed -n 's:/proc/\([0-9]\+\)/.*:\1:p' | sort | uniq) 2>/dev/null && sleep 0.1
+ pkill -f "^$sleep_argv0" && sleep 0.1
before="$(xclip -o -selection "$SELECTION" | base64)"
echo -n "$1" | xclip -selection "$SELECTION"
(