Changed xmobar look to be cleaner
This commit is contained in:
parent
666396c9ab
commit
5168508b7e
21 changed files with 900 additions and 150 deletions
18
.config/xmobar/scripts/bluetooth.sh
Executable file
18
.config/xmobar/scripts/bluetooth.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
regex="([0-9A-Z]*:)+"
|
||||
DEVICES=$(bluetoothctl devices)
|
||||
ICON=""
|
||||
COLOR="#696B71"
|
||||
for DEVICE in $DEVICES
|
||||
do
|
||||
if [[ $DEVICE =~ $regex ]]; then
|
||||
STATUS=$(bluetoothctl info $DEVICE | grep "Connected" | awk '{print $2}')
|
||||
if [ $STATUS = "yes" ]; then
|
||||
ICON=""
|
||||
COLOR="#DFDFDF"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
echo "<fc=$COLOR><fn=4>$ICON</fn></fc>"
|
Loading…
Add table
Add a link
Reference in a new issue