BlueProximity
While searching for some info on bluetooth proximity detection I came across a post on the Ubuntu Forums explaining a new program that will lock/unlock your computer for you base on whether or not a set bluetooth device was within a certain distance of your computer. The natural device to use for this would be a cell phone, but now days you could use a bluetooth headset or any other matter of bluetooth enabled device that you keep on your person. Suprisingly enough I was able to setup my iPhone to work with the program and a basic USB bluetooth adapter. One option offered by the program is to execute any command during the lock and unlock phases. By default it is set to turn on your screensaver and lock your screen. The post mentioned your ability to add scripts to do various things like pausing amarok, changing your status in Pidgin. Unfortunately, I use Banshee and no script was written for it. So, I threw together two small scripts to do this for me in python. In the command section of just add “&& python /script/location/banshee_pause.py” (without the “” and substituting in wherever you saved the file). Do the same with the play script for unlock. Now you can walk away and have your Banshee music paused and it will resume when you get back.
Credit for the Scripts and Ideas Goes to:
http://www.madsoft.org/2008/06/10/interfacing-banshee-10-with-dbus-and-python/
http://ubuntuforums.org/showthread.php?t=702372
Posted under Coding

Add A Comment