Cross-browser, cross-search-engine duckduckgo-like bangs
Download the latest binary release from here and place it in a folder thats in $PATH e.g. /usr/local/bin.
This is easier, but you have to build the binary yourself.
cargo install localbang
localbang <shortcuts_file> <search_engine>
This will start a local webserver on port http://localhost:8000/. Every path (e.g. http://localhost:8000/foo) will be redirected to the search engine (with the query "foo") provided as a second argument (defaults to google search).
You can find a unit file in example/localbang.service
that can be used to start localbang in systemd. Place this in /etc/systemd/user
or ~/.config/systemd/user/
and then systemctl --user enable --now localbang.service
to enable it.
The shortcuts file defined the bangs, which are available. It is a CSV file with two rows: the keyword
and the url
. Examle Shortcuts File
This is the phrase or letter (could be anything really) that will be used to trigger the search engine specified in the url
column.
The search engine to use for the bang/keyword. This must include a %s
as the placeholder for the query.
Note: Opensearch Integration is planned for the future.
In Chrome you can directly add a custom search engine.
The easiest way is to use the Add custom search engine extension.