Adding bluetooth scripts

This commit is contained in:
Vlad Doster 2020-02-12 13:36:10 -05:00
parent a2a15d07af
commit 981db0af3c
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#!/usr/bin/env sh
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
then
echo "%{F#66ffffff}"
else
if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ]
then
echo ""
fi
echo "%{F#2193ff}"
fi

View File

@ -0,0 +1,8 @@
#!/usr/bin/env sh
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
then
bluetoothctl power on
else
bluetoothctl power off
fi