From: Siraaj Khandkar Date: Wed, 17 Apr 2019 16:48:27 +0000 (-0400) Subject: Add functions to list Bluetooth devices X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;ds=inline;h=2c0865d1062d23335bc30787ccc72ee7e5a5fbe4;p=khome.git Add functions to list Bluetooth devices --- diff --git a/lib/login_functions.sh b/lib/login_functions.sh index 8488f4f..8876e75 100644 --- a/lib/login_functions.sh +++ b/lib/login_functions.sh @@ -98,3 +98,15 @@ work_log() { weather() { curl "http://wttr.in/$WEATHER_LOCATION" } + +bt_devs_paired() { + bluetoothctl -- paired-devices \ + | awk '{print $2}' \ + | xargs bluetoothctl -- info +} + +bt_devs() { + bluetoothctl -- devices \ + | awk '{print $2}' \ + | xargs bluetoothctl -- info +}