Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # A script to make notification sounds play on top of audio playback on Sailfish OS devices.
- # Tested on version 2.0.5 (Haapajoki)
- FILE=$1
- ME=$(basename "$0")
- if (( $# != 1 ))
- then
- echo "Usage: $ME <path_to_file>
- No file path specified, aborting."
- exit 1
- fi
- sed -i.bak -r '/(sound.stream.media.role = notification|sound.stream.droid.device.additional-route = AUDIO_DEVICE_OUT_SPEAKER)/s/^/#/' $FILE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement