[MINOR] changed xmobar to have less redundant info
This commit is contained in:
parent
5788922406
commit
3a1715c393
3 changed files with 17 additions and 24 deletions
|
@ -9,55 +9,55 @@ if [ $batLevel -le 20 ];
|
||||||
then
|
then
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> </fn>"
|
echo "<fn=3> </fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
else
|
else
|
||||||
echo "<fn=4> </fn>"
|
echo "<fn=4> </fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
fi
|
fi
|
||||||
elif [ $batLevel -le 30 ];
|
elif [ $batLevel -le 30 ];
|
||||||
then
|
then
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> </fn>"
|
echo "<fn=3> </fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
else
|
else
|
||||||
echo "<fn=4> </fn>"
|
echo "<fn=4> </fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
fi
|
fi
|
||||||
elif [ $batLevel -le 40 ];
|
elif [ $batLevel -le 40 ];
|
||||||
then
|
then
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> </fn>"
|
echo "<fn=3> </fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
else
|
else
|
||||||
echo "<fn=3> </fn>"
|
echo "<fn=3> </fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
fi
|
fi
|
||||||
elif [ $batLevel -le 60 ];
|
elif [ $batLevel -le 60 ];
|
||||||
then
|
then
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> </fn>"
|
echo "<fn=3> </fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
else
|
else
|
||||||
echo "<fn=4> </fn>"
|
echo "<fn=4> </fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
fi
|
fi
|
||||||
elif [ $batLevel -le 80 ];
|
elif [ $batLevel -le 80 ];
|
||||||
then
|
then
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> </fn>"
|
echo "<fn=3> </fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
else
|
else
|
||||||
echo "<fn=4> </fn>"
|
echo "<fn=4> </fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
fi
|
fi
|
||||||
elif [ $batLevel -le 95 ];
|
elif [ $batLevel -le 95 ];
|
||||||
then
|
then
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> </fn>"
|
echo "<fn=3> </fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
else
|
else
|
||||||
echo "<fn=4> </fn>"
|
echo "<fn=4> </fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ $charging == "on-line" ];
|
if [ $charging == "on-line" ];
|
||||||
then
|
then
|
||||||
echo "<fn=3> </fn>"
|
echo "<fn=3></fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
else
|
else
|
||||||
echo "<fn=4> </fn>"
|
echo "<fn=4></fn> <fc=#AAC0F0> $batLevel%</fc>"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
freespace=$(btrfs fi usage / | grep -Po 'Free \(estimated\):.*' | awk '{print $3}')
|
freespace=$(btrfs fi usage / | grep -Po 'Free \(estimated\):.*' | awk '{print $3}')
|
||||||
echo "<fn=6></fn>: <fc=#AAC0F0> $freespace</fc>"
|
echo "<fn=6></fn> <fc=#AAC0F0> $freespace</fc>"
|
||||||
|
|
|
@ -15,7 +15,7 @@ Config {font = "Ubuntu bold 10"
|
||||||
-- an integer for the percentage width, so 100 would be 100%.
|
-- an integer for the percentage width, so 100 would be 100%.
|
||||||
-- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels.
|
-- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels.
|
||||||
-- NOTE: The height should be the same as the trayer (system tray) height.
|
-- NOTE: The height should be the same as the trayer (system tray) height.
|
||||||
, position = TopSize L 100 40
|
, position = TopSize L 100 36
|
||||||
, lowerOnStart = True
|
, lowerOnStart = True
|
||||||
, hideOnStart = False
|
, hideOnStart = False
|
||||||
, allDesktops = True
|
, allDesktops = True
|
||||||
|
@ -55,17 +55,10 @@ Config {font = "Ubuntu bold 10"
|
||||||
\ \
|
\ \
|
||||||
\%disk%\
|
\%disk%\
|
||||||
\ \
|
\ \
|
||||||
\|\
|
|
||||||
\ \
|
|
||||||
\ \
|
|
||||||
\%network%\
|
|
||||||
\ \
|
|
||||||
\%bluetooth%\
|
|
||||||
\ \
|
|
||||||
\%volume%\
|
|
||||||
\ \
|
\ \
|
||||||
\%battery%\
|
\%battery%\
|
||||||
\ \
|
\ \
|
||||||
|
\ \
|
||||||
\|\
|
\|\
|
||||||
\%trayerpad%"
|
\%trayerpad%"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue