2022-10-10 17:28:36 +04:00
|
|
|
{ iconfont, gnugrep, bash, bluez, pulseaudio, util-linux, python3, ... }:
|
2020-07-27 01:16:19 +04:00
|
|
|
''
|
|
|
|
#!${bash}/bin/bash
|
2022-10-10 17:28:36 +04:00
|
|
|
if ${util-linux}/bin/rfkill | ${gnugrep}/bin/grep bluetooth > /dev/null; then
|
|
|
|
if ${util-linux}/bin/rfkill | ${gnugrep}/bin/grep bluetooth | ${gnugrep}/bin/grep blocked > /dev/null; then
|
2020-07-27 01:16:19 +04:00
|
|
|
if ${bluez}/bin/bluetoothctl info > /dev/null; then
|
2022-09-01 23:10:23 +04:00
|
|
|
if ${pulseaudio}/bin/pactl list sinks | ${gnugrep}/bin/grep bluez > /dev/null; then
|
2020-08-04 22:52:30 +04:00
|
|
|
echo -n ""
|
2020-07-27 01:16:19 +04:00
|
|
|
else
|
2020-08-04 22:52:30 +04:00
|
|
|
echo -n ""
|
2020-07-27 01:16:19 +04:00
|
|
|
fi
|
|
|
|
else
|
2020-08-04 22:52:30 +04:00
|
|
|
echo -n ""
|
2020-07-27 01:16:19 +04:00
|
|
|
fi
|
|
|
|
else
|
2020-08-04 22:52:30 +04:00
|
|
|
echo -n ""
|
2020-07-27 01:16:19 +04:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
''
|