Custom "!Bangs" in qutebrowser

By chimo on (updated on )

I've been using DuckDuckGo as my default search engine for a while now (recently moved to the lite version). One thing I like about it is the !bang feature. Unfortunately, you can't customize or add your own without submitting them to DuckDuckGo for review and approval, so I looked into how to achieve this with qutebrowser instead.

A quick DDG search later, I found this reddit comment which explains how to do it. Pretty simple, turns out. The first (and only so far) I've added is "!man" to use the excellent Archlinux manual pages repository:

# In ~/.config/qutebrowser/config.py

c.url.searchengines = {
    'DEFAULT': 'https://lite.duckduckgo.com/lite?q={}',
    '!man': 'https://man.archlinux.org/search?q={}'
}

As a bonus, I also learned the command to reload qutebrowser's config file `:config-source`

Recent articles from blogs I follow

I think fedizens should be able to disable replies to some or all of their posts

Every so often, there is a bit of a debate in the fediverse about whether a person should be able to make a post to which other users cannot reply. Yes, they should My view is simple: yes, they should. It is no different to running a website and not offering…

via Neil's blog December 7, 2024

Adding Encrypted Swap and a Userspace OOM-Killer

When setting up my Ideapad, I didn't configure swap because I wanted to avoid reducing the (already unknown) lifetime of it's eMMC storage. This, however, has proven to be a mistake - the Ideapad only has 4GB of RAM and I'm quite good at accid…

via www.bentasker.co.uk December 7, 2024

Advent of Code: Day 4

Link to Day #4 puzzle.

via not just serendipity December 6, 2024