commit b732a18

hovercats  ·  2024-11-11 18:21:26 +0000 UTC
parent 2e38eef
dsearch: switch to lite.duckduckgo.com. the searchstring is easier to work with. | remove if not statement, its not really needed
1 files changed,  +2, -2
+2, -2
 1@@ -5,10 +5,10 @@
 2 
 3 flag e +
 4 
 5-ENGINE='https://duckduckgo.com/?q='
 6+ENGINE='https://lite.duckduckgo.com/html?q='
 7 
 8 # Spaces are not allowed, so substitute them to correct string
 9 STRING=`{printf '' | dmenu -c -p 'Search' | sed 's/ /%20/g'}
10 
11 if (~ $#STRING 0) printf 'Usage: dsearch: query\n' exit 1
12-if not exec $BROWSER $ENGINE$STRING
13+exec $BROWSER $ENGINE$STRING