-
Notifications
You must be signed in to change notification settings - Fork 148
Bluetooth connect sounds
Nico Kaiser edited this page Oct 31, 2020
·
1 revision
Everytime a Bluetooth device connects or disconnects, the udev script is executed.
Older versions of this script installed sound effects on these events. These have been removed from the main scripts for simplicity and consistency (the other services like AirPlay and Spotify do not have sounds on connect), but can be easily added:
- Add desired sound effects as Wave files. These are the default names for custom sound effects according to the freedesktop.org specification, but you can drop them anywhere on the device:
/usr/local/share/sounds/__custom/device-added.wav
/usr/local/share/sounds/__custom/device-removed.wav
- Modify the
/usr/local/bin/bluetooth-udev
script to play the sounds
...
if [ "$action" = "add" ]; then
...
aplay -q /usr/local/share/sounds/__custom/device-added.wav
fi
if [ "$action" = "remove" ]; then
...
aplay -q /usr/local/share/sounds/__custom/device-removed.wav
fi