Dwm下使用蓝牙耳机听歌

dwm不同于其他de,要使用蓝牙耳机,需要安装蓝牙协议栈以及蓝牙控制软件,并且需要额外安装pulseaudio-bluetooth

installation

1
sudo pacman -S  pulseaudio-bluetooth bluez bluez-utils

Connection

开启蓝牙服务

1
2
sudo systemctl enbale bluetooth #开机自启
sudo systemctl enbale bluetooth #开启

连接蓝牙,bluez-utils提供了cli交互软件bluetoothctl

1
2
3
4
5
6
7
8
bluetoothctl #进入cli交互,所有选项均可使用tab补全
$ power on #开启
$ scan on #开始扫描
$ scan off #结束扫描
$ devices #列出可用设备,左边mac地址,右边设备名
$ pair <your mac addr> #配对mac地址
$ connect <your mac addr> #连接设备
$ exit #退出

每次开机或者重新登录都需要重新连接,下次重新连接无需配对,只需要power onconnect

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy