1
0
Fork 0
dotfiles/files/.config/polybar/bluetooth.bash

15 lines
246 B
Bash
Raw Normal View History

2018-03-10 04:04:29 +00:00
#!/bin/bash
if rfkill list bluetooth | grep "yes" >/dev/null; then
if [[ "$1" == "toggle" ]]; then
rfkill unblock bluetooth
fi
echo "$ICO_BLU_OFF"
else
if [[ "$1" == "toggle" ]]; then
rfkill block bluetooth
fi
echo "$ICO_BLU_ON"
fi