diff options
Diffstat (limited to 'url_handler.sh')
-rwxr-xr-x | url_handler.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/url_handler.sh b/url_handler.sh new file mode 100755 index 0000000..931fce6 --- /dev/null +++ b/url_handler.sh @@ -0,0 +1,10 @@ +#!/bin/sh +echo $1 + +case $1 in + *youtube.com*) yt.sh $1 ;; + *youtu.be*) yt.sh $1 ;; + *mailto*) echo Mail ;; + *) $BROWSER $1 ;; +esac + |