added more cool lemonbar indicators
This commit is contained in:
parent
22113dada7
commit
b330fef520
@ -21,7 +21,7 @@
|
|||||||
device = "/dev/sdd3";
|
device = "/dev/sdd3";
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "Italy/Rome";
|
time.timeZone = "Europe/Rome";
|
||||||
|
|
||||||
networking.hostName = "Fazo-PC"; # Define your hostname.
|
networking.hostName = "Fazo-PC"; # Define your hostname.
|
||||||
networking.hostId = "6bc261fc";
|
networking.hostId = "6bc261fc";
|
||||||
|
@ -59,6 +59,11 @@ separator(){
|
|||||||
echo -n "%{F$GREY}◆"
|
echo -n "%{F$GREY}◆"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getLOAD(){
|
||||||
|
LOAD=$(echo -n "$(cat /proc/loadavg | cut -d ' ' -f 1-3) $(egrep -c '^processor' /proc/cpuinfo)00 0" | sed 's/\(0\.\|0\.0\|\.\)//g' | sed 's/800/300/g' | spark | tail -n 1 | cut -b 1-9)
|
||||||
|
echo -n "%{F$BLUE}$LOAD"
|
||||||
|
}
|
||||||
|
|
||||||
getMEM(){
|
getMEM(){
|
||||||
total=$(grep 'MemTotal' /proc/meminfo | egrep -o '[0-9]+')
|
total=$(grep 'MemTotal' /proc/meminfo | egrep -o '[0-9]+')
|
||||||
not_apps=0
|
not_apps=0
|
||||||
@ -72,7 +77,7 @@ getMEM(){
|
|||||||
buildBar () {
|
buildBar () {
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
echo " $(getMPD) %{c}$(buildClock) %{r} $(getMEM) $(separator) $(getDISK) $(separator) $(getNET) $(separator) $(getVolume) "
|
echo " $(getMPD) %{c}$(buildClock) %{r} $(getLOAD) $(separator) $(getMEM) $(separator) $(getDISK) $(separator) $(getNET) $(separator) $(getVolume) "
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user