New backup 2025-03-04 16:45:02
This commit is contained in:
parent
d5da91409d
commit
057262ef5d
1 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
devices=$(echo '[{"name":"mouse"},{"name":"headphones"}]' | jq '.')
|
||||
echo ${devices}
|
||||
device_mac_list=$(bluetoothctl devices Paired | awk '{print $2}')
|
||||
|
||||
for m in ${device_mac_list};do
|
||||
device_name="$(bluetoothctl info ${m} | grep 'Name: ' | sed 's/.*Name: //')"
|
||||
device_icon="$(bluetoothctl info ${m} | grep 'Icon: ' | sed 's/.*Icon: //')"
|
||||
echo "mac: ${m}"
|
||||
done
|
||||
#devices=$(echo '[{"name":"mouse"},{"name":"headphones"}]' | jq '.')
|
||||
#echo ${devices}
|
||||
|
|
Loading…
Add table
Reference in a new issue