summaryrefslogtreecommitdiff
path: root/url_handler.sh
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-12-20 16:32:59 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-12-20 16:32:59 -0500
commit45f61ff80062ec9137c0d77f3b732bc1a4f59179 (patch)
treeb0e3978e43ec918e196aece2f89efadc85eff328 /url_handler.sh
parent8a4cbf34f6e9509ed42b54dd15b9b506184274e7 (diff)
downloadscripts-45f61ff80062ec9137c0d77f3b732bc1a4f59179.tar.xz
scripts-45f61ff80062ec9137c0d77f3b732bc1a4f59179.zip
updated url handler, started merging with yt.sh; merged screen modes,
locker into dockd for automatic docking display swap
Diffstat (limited to 'url_handler.sh')
-rwxr-xr-xurl_handler.sh10
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
+