Add functions to list Bluetooth devices
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 17 Apr 2019 16:48:27 +0000 (12:48 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 17 Apr 2019 16:48:27 +0000 (12:48 -0400)
lib/login_functions.sh

index 8488f4f..8876e75 100644 (file)
@@ -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
+}
This page took 0.017715 seconds and 4 git commands to generate.