README.org

#+TITLE: Bt

#+BEGIN_QUOTE
Convenient wrapper around bluetoothctl
#+END_QUOTE

[[https://hex.pm/packages/bt][https://img.shields.io/hexpm/v/bt?.svg]]

* Table of contents :TOC_2:
- [[#installation][Installation]]
- [[#usage][Usage]]
  - [[#list-devices][List devices]]
  - [[#add-new-alias][Add new alias]]
  - [[#list-your-aliases][List your aliases]]
  - [[#connect][Connect]]

* Installation
1. Add ~$HOME/.mix/escripts~ to your ~PATH~ variable
2. Install escript
#+BEGIN_SRC shell
mix escript.install hex bt
#+END_SRC

* Usage
** List devices
#+BEGIN_EXAMPLE
$ bt devices

AirPods
#+END_EXAMPLE

** Add new alias
#+BEGIN_EXAMPLE
$ bt alias add

1. AirPods
Select device: 1
Enter alias: a
#+END_EXAMPLE

** List your aliases
#+BEGIN_EXAMPLE
$ bt alias ls

a -> AirPods
#+END_EXAMPLE

** Connect
#+BEGIN_EXAMPLE
$ bt con a

Trying to connect... done
#+END_EXAMPLE