This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |