X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=lib%2Flogin_functions.sh;h=8876e75fe2743b276e91b386de2e630b3912a825;hb=2c0865d1062d23335bc30787ccc72ee7e5a5fbe4;hp=c8b116d462834755fdd6ab1ce309e6196f173577;hpb=c44fbbc20946c4a813494243ccc34fc73faa6ddb;p=khome.git diff --git a/lib/login_functions.sh b/lib/login_functions.sh index c8b116d..8876e75 100644 --- a/lib/login_functions.sh +++ b/lib/login_functions.sh @@ -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)" \ @@ -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 +}