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?
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