summaryrefslogtreecommitdiffstats
path: root/urxvt-link.sh
diff options
context:
space:
mode:
Diffstat (limited to 'urxvt-link.sh')
-rwxr-xr-xurxvt-link.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/urxvt-link.sh b/urxvt-link.sh
index 9db1107..ec49820 100755
--- a/urxvt-link.sh
+++ b/urxvt-link.sh
@@ -1,3 +1,8 @@
-#!/bin/sh
+#!/bin/bash
echo -n "$1" | nohup >/dev/null 2>&1 xclip
-firefox "$1"
+
+if [[ $1 =~ http://(www.)?youtube.com/* ]]; then
+ chromium "$1"
+else
+ firefox "$1"
+fi