diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-07-10 21:46:09 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-07-10 21:48:01 +0200 |
commit | d2a44efbe707b7210107fabce58fb99c1a3b251e (patch) | |
tree | c5527ba09d85d044326a06393ad8d0f88d8ac167 /urxvt-link.sh | |
parent | 5a311acfe51d396dd65fe72ec478ceebea64f6c1 (diff) | |
download | bin-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-x | urxvt-link.sh | 9 |
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 |