X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=fremantle%2Feasy-deb-chroot%2Fsrc%2Fhome%2Fuser%2Fimg-install%2Fmsgnotify;fp=fremantle%2Feasy-deb-chroot%2Fsrc%2Fhome%2Fuser%2Fimg-install%2Fmsgnotify;h=a064d2d6a93e8afed7489281ab8c0d4759468847;hb=af7fe7476a5e0a0bdb128020fe30522b15c070e7;hp=0000000000000000000000000000000000000000;hpb=860ce44c671b8d6800654876486b541a50af4e3e;p=easy-deb-chroot diff --git a/fremantle/easy-deb-chroot/src/home/user/img-install/msgnotify b/fremantle/easy-deb-chroot/src/home/user/img-install/msgnotify new file mode 100755 index 0000000..a064d2d --- /dev/null +++ b/fremantle/easy-deb-chroot/src/home/user/img-install/msgnotify @@ -0,0 +1,21 @@ +#!/bin/sh + +#Set the vibration pattern (see /etc/mce/mce.ini) +vibrate_pattern=PatternIncomingMessage + +#Set the led pattern (see /etc/mce/mce.ini) +led_pattern=PatternCommunicationIM + +#Set the sound file to play +sound_file=$1 +#sound_file=/usr/share/sounds/chat-msg_in_bg.wav +#sound_file=/usr/share/sounds/Message1.aac + +#Make the phone vibrate +dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_vibrator_pattern_activate string:$vibrate_pattern + +#Play a sound +aplay -q $sound_file + +#Make the led notification light blink +dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_led_pattern_activate string:$led_pattern