Polybar Mic button and cleaning up code

This commit is contained in:
Michał Gdula 2022-04-26 23:20:46 +01:00
parent 3b2fca577a
commit 54b578567c
7 changed files with 44 additions and 9 deletions

View file

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