dotfiles/home/default/scripts/restart-bluetooth

14 lines
263 B
Bash
Executable File

#!/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