New Room Setup

Posted on Sunday 28 May 2006

Music

I’ve gotten back from my second year at K-State. Thank God finals are finally over. I’ve gotten all of my stuff setup in my room back home. I’ve got a pretty good setup going now. I’ve got my Xbox, this server and laptop plugged into my WRT54GS. I can use everything I need from the comfort of my bed. Oh, wondrous luxury. I’ve got my speakers plugged into the sound card on my server and through a combination of mp3blaster and my own custom script, I can play music on those speakers from anywhere through putty. I think it’s pretty sweet.

Here’s a copy of my shell script:

  1. #!/bin/sh
  2. #
  3. # Music Script 0.1
  4. #
  5. # Plays specified or default playlist using mp3blaster.
  6. #
  7.  
  8. default=/home/kyleh/playlists/syntax.m3u
  9. custom=$1
  10.  
  11. # If no playlist is given, play the default
  12. if [ $# -ne 1 ]
  13. then
  14. mp3blaster -a "$default" -p allrandom
  15. else
  16. # If custom playlist is readable
  17. if [ -s "$custom" ]
  18. then
  19. mp3blaster -a "$custom" -p allrandom
  20. else
  21. echo "ERROR: Unable to open custom playlist, opening default"
  22. mp3blaster -a "$default" -p allrandom
  23. fi
  24. fi
  25.  
  26. exit 0

Here’s a link to my script: music.zip


No comments have been added to this post yet.

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post |