summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-03-28 04:14:58 -0500
committerepoch <epoch@hacking.allowed.org>2020-03-28 04:14:58 -0500
commitc51b01bcd1b4f8d699a691f2119de5cffa786e0f (patch)
tree4d4766b2ebb576ede35a69b8b2cb0e6d92cac683
parentc96e8ca9d79e9fc75359272f30921cbdb2bbaf13 (diff)
downloadhackvr-c51b01bcd1b4f8d699a691f2119de5cffa786e0f.tar.gz
hackvr-c51b01bcd1b4f8d699a691f2119de5cffa786e0f.zip
added hackvr_uri script and fixed the makefile brokenness
-rwxr-xr-xbin/hackvr_uri7
-rw-r--r--src/Makefile1
2 files changed, 7 insertions, 1 deletions
diff --git a/bin/hackvr_uri b/bin/hackvr_uri
new file mode 100755
index 0000000..a5bc8c5
--- /dev/null
+++ b/bin/hackvr_uri
@@ -0,0 +1,7 @@
+#!/bin/bash
+#this is a version of hackvr that will attempt to launch URIs that your user actions on.
+hackvr \
+ | tee \
+ >(sed -un "s/$USER *action *<\([^ ]*\)>/\1/p" \
+ | stdbuf -o0 tr '\n' '\0' \
+ | xargs -n1 -0 copy_start_nevermind.sh 2>&1 >/dev/null)
diff --git a/src/Makefile b/src/Makefile
index 4b31ed5..51b48a0 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -65,7 +65,6 @@ math.o: LDLIBS=-lm -lidc -lhashtable
install: all
mkdir -p $(PREFIX)/bin
install hackvr $(PREFIX)/bin/hackvr
- install -t $(PREFIX)/bin hackvr_uri
install hackvr_headless $(PREFIX)/bin/hackvr_headless
install hackvr_x11 $(PREFIX)/bin/hackvr_x11
install slowcat $(PREFIX)/bin/slowcat