Skip to content

universe bluetooth

Bluetooth through BlueZ: paired and found devices (default), pairing, forgetting

Usage: universe bluetooth [OPTIONS] [COMMAND]

The adapter, then the paired devices and those a scan found

Usage: universe bluetooth ls [OPTIONS]

Look for devices for a while, then list them

Usage: universe bluetooth scan [OPTIONS]
  • --seconds <SECONDS>: Default 10.

Pair, trust and connect a device; a passkey or PIN is asked here

Usage: universe bluetooth pair [OPTIONS] <ADDRESS>
  • <ADDRESS>
Usage: universe bluetooth connect [OPTIONS] <ADDRESS>
  • <ADDRESS>
Usage: universe bluetooth disconnect [OPTIONS] <ADDRESS>
  • <ADDRESS>

Unpair a device and forget it

Usage: universe bluetooth remove [OPTIONS] <ADDRESS>
  • <ADDRESS>

Turn the adapter on or off

Usage: universe bluetooth power [OPTIONS] <STATE>
  • <STATE>: One of on, off.

Stream the state, pairing questions and each command’s outcome: what the launcher’s Bluetooth pages run

Usage: universe bluetooth watch [OPTIONS]
  • --json: One JSON object per line on stdout, commands on stdin.