Search the web without search engines
My favourite search engine is https://duckduckgo.com. Other than its privacy it comes with an amazing feature of "Bangs" where you can redirect to search on the chosen website if we use specific word for it.
jq sed rofi or dmenu or fzf (please change the menu variable to 1, 2, and 3 accordingly) awk curl
Download the above mentioned requirement first (if not present). Download this repository or use git clone
git clone https://github.com/abhilash26/searchbang.git
cd searchbang
chmod u+x searchbang
For repeated use it is better to add this script to the bin folder or any folder which exists in PATH variable.
./searchbang
or
./searchbang <bang> <search terms>
If your DM (Desktop Manager) or WM (Window Manager) has swallow functionality use that.
or use https://github.com/salman-abedin/devour which I personally do. then for BROWSER variable use BROWSER="devour firefox" (if firefox for example)
You can decide to not open browser automatically if you desire by setting the OPENBROWSER variable to 0
OPENBROWSER=0
Use your preferred browser binary with custom options as the BROWSER variable For example:
BROWSER="brave --incognito"
I know people has massive love for their own menu system. currently this script supports dmenu rofi and fzf
For rofi:
MENU=1
For dmenu:
MENU=2
For fzf
MENU=3
A lot of optimizations and UX is needed on this. Please help by creating pull requests.