Reply
Thread Tools
Posts: 958 | Thanked: 3,426 times | Joined on Apr 2012
#11
Why not just make the SMS sound silence? Then you don't need a click sound.
 
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#12
Success with the method of changing next SMS sound.

Code:
#! /bin/sh
dbus-monitor --system interface='Phone.SMS',member='incoming' | while grep -q array
do
echo "SMS recieved"
sleep 1
songdir="/home/user/MyDocs/.sounds/SMS-Random/"
a=$(ls "$songdir" -1 | awk 'BEGIN{srand()} {x[NR] = $0} END{print "", x[1 + int(rand() * NR)]}' | sed 's/^ *//')
sleep 5
cp "$songdir""$a" /home/user/.local/share/sounds/Message1.aac.wav
done
Select "Message1" as ringtone, 1 sms will have the stock tone, every other will have random sounds from defined folder, now just need to make a startup script so i don't have an open terminal all the time

Last edited by dr_frost_dk; 2014-04-06 at 19:58.
 

The Following User Says Thank You to dr_frost_dk For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 09:31.