What you are asking is a widget, I don't think you can create one out of a shell script...What you can do is to create a icon On and Off which when selected calls the appropriate script...and how did you do it?...using bluetooth?