From d7d8a5b31099f1f15ee1b7b7437840a3d2625a13 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 5 Sep 2009 18:08:09 +0200 Subject: Moved rrad and youtube-watch into scripts --- etc/functions/rrad | 14 -------------- etc/functions/youtube-watch | 24 ------------------------ 2 files changed, 38 deletions(-) delete mode 100644 etc/functions/rrad delete mode 100644 etc/functions/youtube-watch (limited to 'etc/functions') diff --git a/etc/functions/rrad b/etc/functions/rrad deleted file mode 100644 index 195ceb3..0000000 --- a/etc/functions/rrad +++ /dev/null @@ -1,14 +0,0 @@ -## vim:ft=zsh -typeset url=$(printf http://www.wetteronline.de/daten/radar/dnrw/%s/std_%02d%02d.gif \ - $(date +%Y/%m/%d) $(( $(date +%H) - 2)) $(( $(date +%M) / 15 * 15 )) ) -typeset file=$(mktemp /tmp/rrad.XXXXXXX) - -curl -s $url > $file - -if [[ ${$(du -b $file)[1]} == 0 ]] { - echo "Error" - return 1 -} - -mplayer -loop 0 $file -rm $file diff --git a/etc/functions/youtube-watch b/etc/functions/youtube-watch deleted file mode 100644 index 18e473a..0000000 --- a/etc/functions/youtube-watch +++ /dev/null @@ -1,24 +0,0 @@ -## vim:ft=zsh -## Watch a youtube video -## requires youtube-dl and mplayer -## Usage: youtube-dl [-c]