commit 7b5817e4b9101e6d2b8100754ab37bd215bee54e
Author: Moritz Schönherr <[email protected]>
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
@@ -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>`


Reply via email to