Set Default Browser in i3
Here's how to set the default browser in i3.
xdg is this useful standard for how to handle application programs in Linux.
If you run xdg-open https://jaketrent.com
, it'll open the url using a default browser. This is great for opening URLs from the command line.
What if the browser you're using recently discarded its promises to not sell your information? It's time to change your default browser. Let's go!
As the archlinux wiki for xdg-utils teaches, run these commands:
# See what it is now
xdg-mime query default x-scheme-handler/https
# Set it to what you want
xdg-mime default brave-browser.desktop x-scheme-handler/https
Done. Browser set, from the terminal. i3 happiness secured.