aboutsummaryrefslogtreecommitdiff
path: root/home/.config/i3/status/bluetooth
blob: 3c2f9f1ff647a266159593a052c064c9c4d2bd8f (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash
if (/usr/sbin/rfkill list bluetooth --output SOFT,HARD --noheadings \
	| grep -w blocked --quiet); then
    echo "OFF"
    echo "blocked"
else
    echo "ON"
    echo "unblocked"
fi