sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 7b5817e4b9101e6d2b8100754ab37bd215bee54e
parent e84449fb71c73ca62ae8aba6b567dc6780a57665
Author: Moritz Schönherr <moritz.schoenherr@gmail.com>
Date:   Wed, 20 Apr 2016 09:19:49 +0200

Added config.h section for surfraw search to surf/files

Diffstat:
Asurf.suckless.org/files/surfraw_as_searchengine.md | 28++++++++++++++++++++++++++++
1 file changed, 28 insertions(+), 0 deletions(-)

diff --git a/surf.suckless.org/files/surfraw_as_searchengine.md 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>`