summaryrefslogtreecommitdiff
path: root/bin/hackvr_uri
blob: 19c0f37a28b5ae1c1c51a59438dd49cd99f71abe (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash
#this is a version of hackvr that will attempt to launch URIs that your user actions on.
set -o pipefail
tee --output-error=exit /dev/stderr | hackvr \
  | grep --line-buffered -v '^#' \
  | tee \
     >(sed -un "s/$USER  *action  *<\([^ ]*\)>/\1/p" \
        | stdbuf -o0 tr '\n' '\0' \
        | xargs -n1 -r -P 0 -0 copy_start_nevermind.sh 2>&1 >/dev/null)