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

15 lines
246 B
Bash
Executable File

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