From 29908870fb78fac2d47e4f508cfdcc787ff85dc7 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 8 Jan 2022 00:05:03 -0500 Subject: [PATCH] prototype: remove clipwatcher --- prototype/clipwatcher.sh | 8 -------- prototype/zachme-prototype.sh | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 prototype/clipwatcher.sh diff --git a/prototype/clipwatcher.sh b/prototype/clipwatcher.sh deleted file mode 100644 index 099e72f..0000000 --- a/prototype/clipwatcher.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -# The other file is just stdout - -while read line -do -sh -c "$line" -done diff --git a/prototype/zachme-prototype.sh b/prototype/zachme-prototype.sh index 2d30712..742a654 100755 --- a/prototype/zachme-prototype.sh +++ b/prototype/zachme-prototype.sh @@ -1,7 +1,7 @@ #!/bin/sh printf \n |wl-copy -wl-paste -t text --watch sh clipwatcher.sh >>"$1" & +wl-paste -t text --watch xargs -I{} sh -c '{}' >>"$1" & PPID=$! trap "kill $PPID" EXIT micro -- "$1" -- 2.34.2