From 2c0865d1062d23335bc30787ccc72ee7e5a5fbe4 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Wed, 17 Apr 2019 12:48:27 -0400 Subject: [PATCH] Add functions to list Bluetooth devices --- lib/login_functions.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 +} -- 2.20.1