20 lines
526 B
Nix
Raw Normal View History

2020-08-04 21:52:30 +03:00
{ iconfont, bash, bluez, pulseaudio, utillinux, python3, ... }:
2020-07-27 00:16:19 +03:00
''
#!${bash}/bin/bash
if ${utillinux}/bin/rfkill | grep bluetooth > /dev/null; then
if ${utillinux}/bin/rfkill | grep bluetooth | grep blocked > /dev/null; then
if ${bluez}/bin/bluetoothctl info > /dev/null; then
if ${pulseaudio}/bin/pactl list sinks | grep bluez > /dev/null; then
2020-08-04 21:52:30 +03:00
echo -n ""
2020-07-27 00:16:19 +03:00
else
2020-08-04 21:52:30 +03:00
echo -n ""
2020-07-27 00:16:19 +03:00
fi
else
2020-08-04 21:52:30 +03:00
echo -n ""
2020-07-27 00:16:19 +03:00
fi
else
2020-08-04 21:52:30 +03:00
echo -n ""
2020-07-27 00:16:19 +03:00
fi
fi
''