Makes linkhandler handle more
It now handles some peertube, more invidious and xkcd
This commit is contained in:
parent
2acea3ea54
commit
0d357e8f9e
2 changed files with 10 additions and 2 deletions
|
@ -9,8 +9,12 @@ url="$1"
|
|||
browser="${BROWSER:-firefox-developer-edition}"
|
||||
|
||||
case "$url" in
|
||||
*"//invidio.us/"*) open-youtube "$url"; exit 0 ;;
|
||||
*"//invidious.*/"*) open-youtube "$url"; exit 0 ;;
|
||||
*//*.youtube.*/*) open-youtube "$url"; exit 0 ;;
|
||||
*"//videos.*"*) open-youtube "$url"; exit 0 ;;
|
||||
*"//xkcd.com/"*) xkcd "$url"; exit 0 ;;
|
||||
*) $browser "$url"; exit 0 ;;
|
||||
#*) notify-send "$url"; exit ;;
|
||||
esac
|
||||
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue