24 lines
367 B
Bash
Executable File
24 lines
367 B
Bash
Executable File
#!/bin/sh
|
|
case "${1%%:*}" in
|
|
http|https)
|
|
if [ $(cat /etc/hostname) = 'alarm' ]
|
|
then
|
|
exec firefox "$1"
|
|
else
|
|
exec qutebrowser "$1"
|
|
fi
|
|
;;
|
|
gemini)
|
|
exec termite -e "amfora $1"
|
|
;;
|
|
mailto)
|
|
exec thunderbird "$1"
|
|
;;
|
|
*.pdf)
|
|
exec evince "$1"
|
|
;;
|
|
*)
|
|
exec /usr/bin/xdg-open "$@"
|
|
;;
|
|
esac
|