The Following User Says Thank You to dr_frost_dk For This Useful Post: | ||
![]() |
2013-05-24
, 23:41
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#2
|
I was wondering if anybody knew of a program or simple script that can intercept SMS and play a random audio file from a folder.
I have a lot of funny audio clips and wanted to have them play at random when i get an SMS.
Now i have already made a few scripts in the past but my memory sometime works like RAM and gets "reset" and im drawing blanks on how to even do DBUS right now, even thou i made something like this for the simple brightness in the past.
The Following User Says Thank You to vi_ For This Useful Post: | ||
![]() |
2013-05-25
, 06:53
|
|
Posts: 1,503 |
Thanked: 2,688 times |
Joined on Oct 2010
@ Denmark
|
#3
|
![]() |
2013-05-25
, 20:14
|
|
Posts: 6,453 |
Thanked: 20,983 times |
Joined on Sep 2012
@ UK
|
#4
|
The Following User Says Thank You to pichlo For This Useful Post: | ||
![]() |
2013-05-26
, 10:42
|
|
Posts: 1,503 |
Thanked: 2,688 times |
Joined on Oct 2010
@ Denmark
|
#5
|
The Following User Says Thank You to dr_frost_dk For This Useful Post: | ||
![]() |
2013-05-27
, 08:37
|
|
Posts: 36 |
Thanked: 57 times |
Joined on Jun 2012
|
#6
|
The Following User Says Thank You to low For This Useful Post: | ||
![]() |
2013-05-27
, 09:21
|
|
Posts: 1,503 |
Thanked: 2,688 times |
Joined on Oct 2010
@ Denmark
|
#7
|
![]() |
2014-04-04
, 20:44
|
|
Posts: 1,503 |
Thanked: 2,688 times |
Joined on Oct 2010
@ Denmark
|
#8
|
#! /bin/sh dbus-monitor --system interface='Phone.SMS',member='incoming' | while grep -q array do echo "SMS recieved" sleep 2 echo "sleep done" echo " " done
![]() |
2014-04-04
, 20:52
|
|
Posts: 1,503 |
Thanked: 2,688 times |
Joined on Oct 2010
@ Denmark
|
#9
|
![]() |
2014-04-04
, 21:47
|
|
Posts: 1,503 |
Thanked: 2,688 times |
Joined on Oct 2010
@ Denmark
|
#10
|
#! /bin/sh dbus-monitor --system interface='Phone.SMS',member='incoming' | while grep -q array do echo "SMS recieved" dbus-send --type=method_call --dest=com.nokia.mafw.renderer.Mafw-Gst-Renderer-Plugin.gstrenderer /com/nokia/mafw/renderer/gstrenderer com.nokia.mafw.extension.set_extension_property string:volume variant:uint32:80 songdir="/home/user/MyDocs/.sounds/SMS-Random/" sleep 3 a=$(ls "$songdir" -1 | awk 'BEGIN{srand()} {x[NR] = $0} END{print "", x[1 + int(rand() * NR)]}' | sed 's/^ *//') mplayer -ao pulse "$songdir""$a" sleep 1 echo "sleep done" echo " " done
I have a lot of funny audio clips and wanted to have them play at random when i get an SMS.
Now i have already made a few scripts in the past but my memory sometime works like RAM and gets "reset" and im drawing blanks on how to even do DBUS right now, even thou i made something like this for the simple brightness in the past.
N900 @ 850MHz (LV) & 3044mAh Battery
Battery Tests and Battery Mod / Homemade 3000mAh XL Battery - (DONATE)
Custom Brightness & No Light Sensor
N900 DIY Micro Amplifier, turn your N900 into a home stereo
Fix you USB before and after it breaks
Feel free to contact me through PM, Skype or G.Talk