aboutsummaryrefslogtreecommitdiff
path: root/newsboat-browser
blob: 03f1bc2637feb76b962b07388df85a5a449f1b42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# try to use the right browser

# path of file
URL="$@"

# get domain name
URL="${URL#*://}"
URL=${URL%%/*}

case $URL in 

   www.youtube.com | youtube.com | youtu.be )
      echo "Video loading, please wait..."
      mpv --really-quiet --no-terminal $@
   ;;

   www.diplomatie.gouv.fr )
      rdrview -T title,body -B cha $@
   ;;
   *) 
      cha $@
   ;; 
esac