Add functions to list Bluetooth devices
[khome.git] / lib / login_functions.sh
index add0cd0..8876e75 100644 (file)
@@ -1,4 +1,5 @@
 # Top Disk-Using directories
+# TODO: Consider using numfmt instead of awk
 tdu() {
     du "$1" \
     | sort -n -k 1 -r --parallel="$(nproc)" \
@@ -72,9 +73,9 @@ $(date +%F)
 Morning report
 --------------
 
-### Yesterday
+### Previous
 
-### Today
+### Current
 
 ### Blockers
 
@@ -97,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.038332 seconds and 4 git commands to generate.