Skip to content

Instantly share code, notes, and snippets.

@andiandi
andiandi / youtube.sh
Created December 9, 2009 22:37
Download and watch youtube videos from the shell. The Script fetches the url from the clipboard, so that you only have to select the url in your browser and start the script. Works great when mapping "xterm -e youtube.sh" to a shortcut, e.g. Meta-Y.
#!/bin/bash
# Download and watch youtube videos from the shell.
# The Script fetches the url from the clipboard,
# so that you only have to select the url in your
# browser and start the script. Works great when
# mapping "xterm -e youtube.sh" to a shortcut, e.g. Meta-Y.
# requires the tools xclip, youtube-dl and mplayer
# it's probably possible to replace xclip with pbpaste on