View Single Post
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#3128
hey guys a question .
i have successfully placed profile widgets on my desktop but i am abit confused how to use this part of

Toggle vibrating alert

There are far more things you can do with your profile. Please have a look at the profile values at the phone control page. This example disables vibrating alert for the active profile.


# Which profile is active?
if \
dbus-send --print-reply --type=method_call \
--dest=com.nokia.profiled /com/nokia/profiled \
com.nokia.profiled.get_profile | grep -q general
then
# general profile is active
dbus-send --type=method_call \
--dest=com.nokia.profiled /com/nokia/profiled \
com.nokia.profiled.set_value string:"general" \
string:"vibrating.alert.enabled" string:"Off"
else
# silent profile is active
dbus-send --type=method_call \
--dest=com.nokia.profiled /com/nokia/profiled \
com.nokia.profiled.set_value string:"silent" \
string:"vibrating.alert.enabled" string:"Off"
fi