URI: 
       added envvars for tardis - bitreich-tardis - Front-end for navigating bitreich memes and TV dimensions
  HTML git clone git://bitreich.org/bitreich-tardis git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/bitreich-tardis
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
   DIR LICENSE
       ---
   DIR commit 4cf3bf0c461c73a02f886ec14cedaeea82dfa7e5
   DIR parent 9151f9e21e6403359fe59328ec717d201062867e
  HTML Author: escapeinsert <escapeinsert@0x1bi.net>
       Date:   Sat, 20 Feb 2021 10:28:20 -0500
       
       added envvars for tardis
       
       Signed-off-by: Anders Damsgaard <anders@adamsgaard.dk>
       
       Diffstat:
         M tardis                              |      12 ++++++++----
         M tardis.1                            |      14 ++++++++++++++
       
       2 files changed, 22 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/tardis b/tardis
       @@ -8,6 +8,10 @@ dimensions="${annna}/dimensions.txt"
        updatestr="update local memecache"
        interludestr="watch Bitreich TV interlude"
        
       +TARDIS_DMENU=${TARDIS_DMENU:-"dmenu -l 10 -p ${0##*/}:"}
       +TARDIS_PLUMB=${TARDIS_PLUMB:-xdg-open}
       +TARDIS_VIDEO=${TARDIS_VIDEO:-mpv}
       +
        update() {
                cd "$annna" && git pull >/dev/null
                getdimensions
       @@ -40,19 +44,19 @@ if test "$1" = "-u"; then
        fi
        
        meme="$( (printf '%s\n%s\n' "$updatestr" "$interludestr"; \
       -        cat "$dimensions" "$hashtags") | dmenu -l 10 -p "${0##*/}:")"
       +        cat "$dimensions" "$hashtags") | ${TARDIS_DMENU})"
        if test "$meme" = "$updatestr"; then
                update
        elif test "$meme" = "$interludestr"; then
       -        xdg-open ssh://time-machine@bitreich.org
       +        ${TARDIS_PLUMB} ssh://time-machine@bitreich.org
        elif test "$meme"; then
                if printf '%s\n' "$meme" | grep -qE '\.m3u$'; then
                        printf '%s' "${meme}" | xclip -i
       -                mpv "$meme"
       +                ${TARDIS_VIDEO} "$meme"
                else
                        printf '%s' "${meme% *}" | xclip -i
                        printf '%s' "${meme#* }" | xclip -i -selection clipboard
       -                xdg-open "${meme#* }"
       +                ${TARDIS_PLUMB} "${meme#* }"
                fi
        else
                exit 1
   DIR diff --git a/tardis.1 b/tardis.1
       @@ -14,6 +14,19 @@ uses
        to find and view content in the bitreich memecache and bitreich tv.
        When opening a meme, the hashtag is copied to the primary X
        selection, and the meme url is copied to the X clipboard.
       +.Sh ENVIRONMENT VARIABLES
       +.Bl -tag -width Ds
       +.It TARDIS_PLUMB
       +Plumb command, defaults to xdg-open
       +.El
       +.Bl -tag -width Ds
       +.It TARDIS_VIDEO
       +Video command, defaults to mpv
       +.El
       +.Bl -tag -width Ds
       +.It TARDIS_DMENU
       +Dmenu command, defaults to dmenu -l 10 -p ${0##*/}:
       +.El
        .Sh OPTIONS
        .Bl -tag -width Ds
        .It Fl u
       @@ -21,5 +34,6 @@ update local cache and exit.
        .El
        .Sh SEE ALSO
        .Xr dmenu 1
       +.Xr xclip 1
        .Sh AUTHORS
        .An Anders Damsgaard Aq Mt anders@adamsgaard.dk