configuration/local/bin/headset.sh

6 lines
172 B
Bash
Raw Normal View History

2015-01-20 20:56:52 +01:00
#!/bin/bash
if ! pgrep pulseaudio; then pulseaudio --start 2> /dev/null ; fi
cat <(echo "connect 00:11:67:11:18:9B") <(echo "quit") \
| bluetoothctl 2> /dev/null 2>&1
2015-01-20 20:56:52 +01:00