surfraw.sh (1060B)
1 #!/bin/sh 2 3 search=$(echo "duckduckgo 4 youtube 5 google 6 archpkg 7 archwiki 8 aur 9 acronym 10 ads 11 alioth 12 amazon 13 arxiv 14 ask 15 austlii 16 bbcnews 17 bing 18 bookfinder 19 bugmenot 20 bugzilla 21 cia 22 cisco 23 cite 24 cliki 25 cnn 26 comlaw 27 commandlinefu 28 ctan 29 currency 30 cve 31 debbugs 32 debcodesearch 33 debcontents 34 deblists 35 deblogs 36 debpackages 37 debpkghome 38 debpts 39 debsec 40 debvcsbrowse 41 debwiki 42 deja 43 discogs 44 ebay 45 etym 46 excite 47 f5 48 finkpkg 49 foldoc 50 freebsd 51 freedb 52 freshmeat 53 fsfdir 54 gcache 55 genbugs 56 genportage 57 github 58 gmane 59 gutenberg 60 imdb 61 ixquick 62 jamendo 63 javasun 64 jquery 65 l1sp 66 lastfm 67 leodict 68 lsm 69 macports 70 mathworld 71 mdn 72 mininova 73 musicbrainz 74 mysqldoc 75 netbsd 76 nlab 77 ntrs 78 openbsd 79 oraclesearch 80 pgdoc 81 pgpkeys 82 phpdoc 83 pin 84 piratebay 85 priberam 86 pubmed 87 rae 88 rfc 89 S 90 scholar 91 scpan 92 searx 93 slashdot 94 slinuxdoc 95 sourceforge 96 springer 97 stack 98 stockquote 99 thesaurus 100 translate 101 urban 102 W 103 w3css 104 w3html 105 w3link 106 w3rdf 107 wayback 108 webster 109 wikipedia 110 wiktionary 111 woffle 112 wolfram 113 worldwidescience 114 yahoo 115 yandex" | dmenu -i -p "Where to search?") 116 117 term=$(echo "arch 118 linux 119 luke smith" | dmenu -i -p "Searchterm") 120 121 [ -n "$term" ] || exit 122 123 surfraw "$search" -browser=chromium "$term" 124 exit