switch alias and battery pos in bluetooth indicator
This commit is contained in:
parent
9bb3469dc6
commit
4bcd0b116e
|
@ -5,9 +5,9 @@ then
|
||||||
echo -e "%{F#66ffffff}\uf293"
|
echo -e "%{F#66ffffff}\uf293"
|
||||||
elif [ $(echo info | bluetoothctl | grep 'DeviceSet' | wc -c) -eq 0 ]
|
elif [ $(echo info | bluetoothctl | grep 'DeviceSet' | wc -c) -eq 0 ]
|
||||||
then
|
then
|
||||||
BAT=$(bluetoothctl info | grep Percentage | cut -d":" -f 2 | cut -d"(" -f 2 | sed 's/)/%/' | sed 's/^/ /')
|
BAT=$(bluetoothctl info | grep Percentage | cut -d":" -f 2 | cut -d"(" -f 2 | sed 's/)/%/')
|
||||||
ALIAS=$(bluetoothctl info | grep Alias | cut -d":" -f 2 | xargs echo -n)
|
ALIAS=$(bluetoothctl info | grep Alias | cut -d":" -f 2)
|
||||||
echo -e "%{F#81a1c1}\uf293%{F#ffffff}$BAT ($ALIAS)"
|
echo -e "%{F#81a1c1}\uf293%{F#ffffff}$ALIAS ($BAT)"
|
||||||
else
|
else
|
||||||
echo -e "\uf293"
|
echo -e "\uf293"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue