tPlay youtube vids thanks to quvi - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 86a9232b5e054aa48ff411163cc7e0640404dddc
(DIR) parent a3214a8626c38015ae208537130f6dcfea6ddcf6
(HTM) Author: z3bra <willy@mailoo.org>
Date: Wed, 26 Mar 2014 19:42:52 +0100
Play youtube vids thanks to quvi
Diffstat:
A ypl | 10 ++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/ypl b/ypl
t@@ -0,0 +1,10 @@
+#!/bin/sh
+# See the LICENSE file for copyright and license details.
+
+MCMD="mplayer %u"
+if [ -z "$CACA_DRIVER" -a -z "$DISPLAY" ];
+then
+ export CACA_DRIVER=ncurses
+ MCMD="mplayer -vo caca %u"
+fi
+quvi --exec "$MCMD" "$1"