#!/bin/sh # Deal with the fact that xdg-open likes to fork bomb under i3. Idea # to bypass system xdg-open in this way from here: # https://drewdevault.com/2019/12/30/dotfiles.html case "${1%%:*}" in http|https) exec firefox --new-window "$1" ;; *.pdf|*.PDF) exec evince "$1" ;; *.xlsx) exec soffice "$1" ;; *) exec /usr/bin/xdg-open "$@" ;; esac