1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 21:18:36 -06:00
random/bluetooth-toogle

11 lines
273 B
Text
Raw Normal View History

2021-04-19 13:54:49 -05:00
# Toggles bluetooth on a Linux system. Make sure that you have bluetoothctl installed.
# I use it with a shortcut.
#!/bin/bash
if [ $(bluetoothctl show "A0:AF:BD:4F:D8:63" | grep Powered | grep -c yes) -eq 1 ]; then
bluetoothctl power off
else
bluetoothctl power on
fi