#!/usr/bin/env bash
set -euox pipefail

pkill -f blueman-manager || true

echo stopping bluetooth...
sudo systemctl stop bluetooth
sudo modprobe -r btusb

echo starting bluetooth...
sudo modprobe btusb
sudo systemctl start bluetooth
sudo rfkill unblock bluetooth
