aboutsummaryrefslogtreecommitdiff
path: root/scripts/.local/bin/personal/wrapper/xdg-open
blob: a5b43d67bbdbc8b969f762222a56917a4efd26ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# A wrapper for xdg-open to catch certain cases not caught by mimeapps.list

case "${1%%:*}" in
	http|https)
		exec qutebrowser "$1"
		;;
  *.pdf)
    exec zathura "$1"
    ;;
	mailto)
		exec st -e bash -i -c "mail $1"
		;;
	*)
		exec /usr/bin/xdg-open "$@"
		;;
esac