index.md (662B)
1 Surfraw as search engine 2 ========================= 3 4 Description 5 ----------- 6 Make sure to have surfraw installed. 7 8 Modify your config.h just before the definition of `keys[]`: 9 10 #define SR_SEARCH { .v = (char *[]){ "/bin/sh", "-c", \ 11 "xprop -id $0 -f _SURF_GO 8s -set _SURF_GO \ 12 $(sr -p $(sr -elvi | tail -n +2 | cut -s -f1 | dmenu))", \ 13 winid, NULL } } 14 15 Then, inside `keys[]`, add: 16 17 { MODKEY, GDK_s, spawn, SR_SEARCH }, 18 19 ### Modkeys 20 21 **CTRL-s** 22 23 Executes dmenu(1) displaying the list of elvis. Complete with TAB and enter 24 search terms. Confirm with ENTER. 25 26 Author 27 ------ 28 * Moritz Schönherr `<moritz dot schoenherr at gmail dot com>`