This repository has been archived on 2022-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
|
#!/bin/sh
|
|
case "${1%%:*}" in
|
|
http|https|*.pdf)
|
|
if [ $(cat /etc/hostname) = 'alarm' ]
|
|
then
|
|
exec firefox "$1"
|
|
else
|
|
exec qutebrowser "$1"
|
|
fi
|
|
;;
|
|
gemini)
|
|
exec termite -e "amfora $1"
|
|
;;
|
|
mailto)
|
|
exec thunderbird "$1"
|
|
;;
|
|
*)
|
|
exec /usr/bin/xdg-open "$@"
|
|
;;
|
|
esac
|