From c5a9ddb6b78c03075692eb5c79b40e61774922a8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 19 Aug 2017 13:37:45 -0300 Subject: Adds searx and change folder layout --- README.md | 2 ++ config.dot/surfraw.link/conf | 2 ++ config.dot/surfraw.link/elvi/wiktionary | 58 +++++++++++++++++++++++++++++++++ config.dot/surfraw/conf.link | 2 -- config.dot/surfraw/elvi.link/wiktionary | 58 --------------------------------- 5 files changed, 62 insertions(+), 60 deletions(-) create mode 100644 config.dot/surfraw.link/conf create mode 100755 config.dot/surfraw.link/elvi/wiktionary delete mode 100644 config.dot/surfraw/conf.link delete mode 100755 config.dot/surfraw/elvi.link/wiktionary diff --git a/README.md b/README.md index 7a4cf8c..37caccd 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,5 @@ This is the repository for surfraw configuration. More information at https://git.fluxo.info/metadot + +See https://surfraw.alioth.debian.org/HACKING for surfraw customization. diff --git a/config.dot/surfraw.link/conf b/config.dot/surfraw.link/conf new file mode 100644 index 0000000..90b7999 --- /dev/null +++ b/config.dot/surfraw.link/conf @@ -0,0 +1,2 @@ +SURFRAW_text_browser=/usr/bin/lynx +SURFRAW_graphical=no diff --git a/config.dot/surfraw.link/elvi/wiktionary b/config.dot/surfraw.link/elvi/wiktionary new file mode 100755 index 0000000..5827d30 --- /dev/null +++ b/config.dot/surfraw.link/elvi/wiktionary @@ -0,0 +1,58 @@ +#!/bin/sh +# elvis: wiktionary -- Search the free dictionary wiktionary +# $Id$ +# Author: Silvio Rhatto +# Original Author: Moritz Muehlenhoff +# Based on wikipedia elvi +. surfraw || exit 1 + +w3_config_hook () { + def SURFRAW_wiktionary_language "$SURFRAW_lang" +} + +w3_usage_hook () { + cat < -# Original Author: Moritz Muehlenhoff -# Based on wikipedia elvi -. surfraw || exit 1 - -w3_config_hook () { - def SURFRAW_wiktionary_language "$SURFRAW_lang" -} - -w3_usage_hook () { - cat <