Files
dotfiles/.local/bin/§bluetooth-toggle.sh

7 lines
126 B
Bash
Executable File

#!/usr/bin/env bash
if bluetoothctl show | grep -q 'Powered: no'; then
bluetoothctl power on
else
bluetoothctl power off
fi