summaryrefslogtreecommitdiffstats
path: root/urxvt-link.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-07-10 21:46:09 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-07-10 21:48:01 +0200
commitd2a44efbe707b7210107fabce58fb99c1a3b251e (patch)
treec5527ba09d85d044326a06393ad8d0f88d8ac167 /urxvt-link.sh
parent5a311acfe51d396dd65fe72ec478ceebea64f6c1 (diff)
downloadbin-d2a44efbe707b7210107fabce58fb99c1a3b251e.tar.gz
bin-d2a44efbe707b7210107fabce58fb99c1a3b251e.tar.xz
mass commit
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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