refactor: new system basics
This commit is contained in:
17
polybar/scripts/bluetooth.sh
Executable file
17
polybar/scripts/bluetooth.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Author by : Daniel Heras
|
||||
# Mail : dani.heras@hotmail.com
|
||||
|
||||
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
|
||||
then
|
||||
echo "%{F#415a77}"
|
||||
else
|
||||
if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ]
|
||||
then
|
||||
echo ""
|
||||
else
|
||||
echo "%{F#40916c}"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user