X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=lib%2Flogin_functions.sh;h=c4dcb53712896df8d295757af99f22da978ad6b7;hb=d754ba4236be9da61c882194bb89581d812e569b;hp=8488f4fdf4c03a606290d5c1b268ecb20e969294;hpb=58bdbfbf86b78ea4392ba24fa01f9eb04e863fcf;p=khome.git diff --git a/lib/login_functions.sh b/lib/login_functions.sh index 8488f4f..c4dcb53 100644 --- a/lib/login_functions.sh +++ b/lib/login_functions.sh @@ -35,7 +35,7 @@ man() { } experiment() { - cd "$($HOME/bin/experiment $@)" + cd "$($HOME/bin/experiment $@)" || exit 1 } hump() { @@ -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 +}