Skip to content

Instantly share code, notes, and snippets.

@alehandrof
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alehandrof/0f02ae69081efd67f8ad to your computer and use it in GitHub Desktop.
Save alehandrof/0f02ae69081efd67f8ad to your computer and use it in GitHub Desktop.
A rainy Paris café on the command line
http://alexarmstrong.net/2015/02/rainy-paris-cafe
#!/bin/sh
wget https://www.coffitivity.com/sounds/audio/mp3/cafeBastille_paris_mp3.mp3 -O - | mplayer - -loop 0 -volume 65 &
wget https://dl.dropboxusercontent.com/u/26515177/RainyMood.mp3 -O - | mplayer - -loop 0 -volume 55 &
mplayer -playlist http://listen.jazzradio.com/public3/pariscafe.pls -volume 45
killall mplayer
#!/bin/sh
# Loop rain and coffeeshop ambiance
mplayer RainyMood.mp3 -loop 0 -volume 55 &
mplayer cafeBastille_paris_mp3.mp3 -loop 0 -volume 65 &
# Play appropriate radio station
mplayer -playlist http://listen.jazzradio.com/public3/pariscafe.pls -volume 45
# Stop all mplayer streams when aborting
killall mplayer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment