Add functions to list Bluetooth devices
[khome.git] / 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.029314 seconds and 4 git commands to generate.