Spotify Auto Pauser

For security reasons at work, we’re expected lock our computers whenever we’re away from them.  That’s totally fine by me.  What bothered me was forgetting to pause Spotify.  Whenever that happens I’m left with having to decide between letting it run thereby messing up my Last.FM stats and missing out on part of an album or sitting down to sign back in to pause it and then lock it again which is not ideal when trying to get to meetings on time.

I did a bit of searching to see if a tool existed to auto-pause/resume Spotify for me whenever I lock and unlock my computer.  I did find one PowerShell script but I couldn’t figure out how to get it to work correctly.

So I switched from searching to researching and pulled together the necessary information to build a Spotify Auto Pauser tool.  It’s very simple, it just adds a ||> tray icon which when clicked will do a pause/resume, but more importantly whenever I lock my computer it pauses Spotify if it’s playing and then resumes it when I unlock it (assuming it was playing before.)  That’s about it.  I don’t really have any plans to expand it further unless people start coming across it (Hi, Bing, Google, et. al.!) and want more functionality.

I’ve also released the source on Google Code since there’s really no reason not to keep it secretly to myself.  I know I’m probably missing out on millions, but I’ll get over it for the good of humanity.

Enjoy!  Let me know if you’ve tried it and what you think!


This entry was posted in Tools and tagged , . Bookmark the permalink.

4 Responses to Spotify Auto Pauser

  1. JEFF says:

    id like to file a complaint. i cant get the auto pauser to work. ggwp

Leave a Reply

Your email address will not be published. Required fields are marked *