View Single Post
Posts: 489 | Thanked: 404 times | Joined on Dec 2009
#4
Originally Posted by Snaps View Post
I would like to have a button on my desktop, which i can press and that will switch between General and Silent mode (No need to change the vibration settings)

This would avoid me taking the 5 click way to switch profiles.

I just want a button which I can press, and turns the phone into silent, and if I press it again, it turns it into General.

Is this possible?
Yes, it's possible. And it's pretty easy to do with a simple script and Queen Beecon Widget

Just use this script as a QBW command:

Code:
if [ `dbus-send --type=method_call --print-reply --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.get_profile | awk 'NR==2 {print $2}'` = '"silent"' ] ; then dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_profile string:"general" ; else dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_profile string:"silent" ; fi