[wiki] [sites] Added config.h section for surfraw search to surf/files || Moritz Schönherr
commit 7b5817e4b9101e6d2b8100754ab37bd215bee54e
Author: Moritz Schönherr <moritz.schoenherr_AT_gmail.com>
Date: Wed Apr 20 09:19:49 2016 +0200
Added config.h section for surfraw search to surf/files
diff --git a/surf.suckless.org/files/surfraw_as_searchengine.md b/surf.suckless.org/files/surfraw_as_searchengine.md
new file mode 100644
index 0000000..70e6a6d
--- /dev/null
+++ b/surf.suckless.org/files/surfraw_as_searchengine.md
_AT_@ -0,0 +1,28 @@
+Surfraw as search engine
+=========================
+
+Description
+-----------
+Make sure to have surfraw installed.
+
+Modify your config.h just before the definition of `keys[]`:
+
+ #define SR_SEARCH { .v = (char *[]){ "/bin/sh", "-c", \
+ "xprop -id $0 -f _SURF_GO 8s -set _SURF_GO \
+ $(sr -p $(sr -elvi | tail -n +2 | cut -s -f1 | dmenu))", \
+ winid, NULL } }
+
+Then, inside `keys[]`, add:
+
+ { MODKEY, GDK_s, spawn, SR_SEARCH },
+
+### Modkeys
+
+**CTRL-s**
+
+Executes dmenu(1) displaying the list of elvis. Complete with TAB and enter
+search terms. Confirm with ENTER.
+
+Author
+------
+* Moritz Schönherr `<moritz dot schoenherr at gmail dot com>`
Received on Wed Apr 20 2016 - 09:20:31 CEST
This archive was generated by hypermail 2.3.0
: Wed Apr 20 2016 - 09:24:20 CEST