~alexdavid/dotfiles

ref: 2cd6582bf8fdd7882e370ebce1dffa536f0f6dd9 dotfiles/bin/browser -rwxr-xr-x 401 bytes
2cd6582b — Alex David Replace firefox with firefox-developer-edition 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

set -e

case "$1" in
  https://twitch.tv/*)       mpvsingleton "$1"          ;;
  https://vimeo.com/*)       mpvsingleton "$1"          ;;
  https://youtube.com/*)     mpvsingleton "$1"          ;;
  https://www.youtube.com/*) mpvsingleton "$1"          ;;
  https://youtu.be/*)        mpvsingleton "$1"          ;;
  https://*)                 firefox "$1"               ;;
esac