[MINOR] fix xmobar battery spacing

This commit is contained in:
Afonso Franco 2023-10-13 10:33:49 +01:00
parent 8e5166a3f8
commit ed3279313d
Signed by: afonso
SSH key fingerprint: SHA256:JiuxZNdA5bRWXPMUJChI0AQ75yC+cXY4xM0IaVwEVys

View file

@ -12,7 +12,7 @@ then
echo ""
exit 0
fi
echo "<fn=3>󰋋</fn><fc=#AAC0F0> $xm3bat%</fc>"
echo "<fn=3>󰋋</fn><fc=#AAC0F0> $xm3bat% </fc>"
exit 0
fi
@ -24,55 +24,55 @@ if [ $batLevel -le 20 ];
then
if [ $charging == "on-line" ];
then
echo "<fn=3>󰂆 </fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=3>󰂆 </fn> <fc=#AAC0F0> $batLevel% </fc>"
else
echo "<fn=4>󰁻 </fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=4>󰁻 </fn> <fc=#AAC0F0> $batLevel% </fc>"
fi
elif [ $batLevel -le 30 ];
then
if [ $charging == "on-line" ];
then
echo "<fn=3>󰂇 </fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=3>󰂇 </fn> <fc=#AAC0F0> $batLevel% </fc>"
else
echo "<fn=4>󰁼 </fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=4>󰁼 </fn> <fc=#AAC0F0> $batLevel% </fc>"
fi
elif [ $batLevel -le 40 ];
then
if [ $charging == "on-line" ];
then
echo "<fn=3>󰂈 </fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=3>󰂈 </fn> <fc=#AAC0F0> $batLevel% </fc>"
else
echo "<fn=3>󰁽 </fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=3>󰁽 </fn> <fc=#AAC0F0> $batLevel% </fc>"
fi
elif [ $batLevel -le 60 ];
then
if [ $charging == "on-line" ];
then
echo "<fn=3>󰂉 </fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=3>󰂉 </fn> <fc=#AAC0F0> $batLevel% </fc>"
else
echo "<fn=4>󰁿 </fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=4>󰁿 </fn> <fc=#AAC0F0> $batLevel% </fc>"
fi
elif [ $batLevel -le 80 ];
then
if [ $charging == "on-line" ];
then
echo "<fn=3>󰂊 </fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=3>󰂊 </fn> <fc=#AAC0F0> $batLevel% </fc>"
else
echo "<fn=4>󰂁 </fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=4>󰂁 </fn> <fc=#AAC0F0> $batLevel% </fc>"
fi
elif [ $batLevel -le 95 ];
then
if [ $charging == "on-line" ];
then
echo "<fn=3>󰂋 </fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=3>󰂋 </fn> <fc=#AAC0F0> $batLevel% </fc>"
else
echo "<fn=4>󰂂 </fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=4>󰂂 </fn> <fc=#AAC0F0> $batLevel% </fc>"
fi
else
if [ $charging == "on-line" ];
then
echo "<fn=3>󰂅</fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=3>󰂅</fn> <fc=#AAC0F0> $batLevel% </fc>"
else
echo "<fn=4>󰁹</fn> <fc=#AAC0F0> $batLevel%</fc>"
echo "<fn=4>󰁹</fn> <fc=#AAC0F0> $batLevel% </fc>"
fi
fi