dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit f0bcc6670b37ce958d1c66a4f2f53b5ebfc406e2
parent 64838c345f5d6d2a8b8fbfca03239b50cb966353
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 26 May 2020 10:55:15 +0200

Use Evil_Bob gopher youtube frontend

Diffstat:
M.local/bin/search | 26+++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/.local/bin/search b/.local/bin/search @@ -44,23 +44,23 @@ elif regeximatch "$c" '!wiki'; then plumb "https://en.wikipedia.org/wiki/Special:Search?search=$(printf '%s' "$c" | sed 's/ *!wiki *//')" elif regeximatch "$c" '!yt'; then - idiotbox="$HOME/code/idiotbox" q="$(printf '%s' "$c" | sed "s/ *!yt *//")" - if [ -x "$idiotbox/cgi" ]; then - tmpfile=/tmp/yt.html - QUERY_STRING="q=$(printf '%s' "$q" | tr ' ' '+')" \ - "$idiotbox/cgi" > "$tmpfile" - cp -r "$idiotbox/css" /tmp - plumb "$tmpfile" - sleep 5 - rm "$tmpfile" - else - plumb "https://codemadness.org/idiotbox/?q=${q}&o=relevance&m=Dark" - fi + #idiotbox="$HOME/code/idiotbox" + #if [ -x "$idiotbox/cgi" ]; then + #tmpfile=/tmp/yt.html + #QUERY_STRING="q=$(printf '%s' "$q" | tr ' ' '+')" \ + #"$idiotbox/cgi" > "$tmpfile" + #cp -r "$idiotbox/css" /tmp + #plumb "$tmpfile" + #sleep 5 + #rm "$tmpfile" + #else + #plumb "https://codemadness.org/idiotbox/?q=${q}&o=relevance&m=Dark" + #fi + plumb "gopher://git.codemadness.org/7/youtube.cgi ${q}" elif regexmatch "$c" ' '; then plumb "https://duckduckgo.com/?q=$(printf '%s' "$c" | sed 's/+/%2b/g;s/&/%26/g;s/ /%20/g')&kae=d&kau=-1&kao=-1&kap=-1&kaq=-1&kax=-1&kak=-1&kv=-1&kk=-1&k1=-1&kc=-1" - else plumb "http://${c}" fi