cpu and mem added to dwmstatus
This commit is contained in:
+13
-1
@@ -63,6 +63,18 @@ vol(){
|
|||||||
echo -ne "${glyph_mute}"
|
echo -ne "${glyph_mute}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#Memory
|
||||||
|
mem(){
|
||||||
|
memused="$(free -m | awk 'NR==2 {print $3}')"
|
||||||
|
echo -ne "${glyph_mem}${memused}M"
|
||||||
|
}
|
||||||
|
|
||||||
|
#CPU
|
||||||
|
load(){
|
||||||
|
cpu="$(uptime | awk '{print +$8, +$9, +$10}')"
|
||||||
|
echo -ne "${glyph_cpu} ${cpu}"
|
||||||
|
}
|
||||||
|
|
||||||
# Pipe to statusbar
|
# Pipe to statusbar
|
||||||
xsetroot -name "$(msc) $(vol) $(bat) $(dte) "
|
xsetroot -name "$(msc) $(load) $(mem) $(bat) $(vol) $(dte) "
|
||||||
|
|||||||
Reference in New Issue
Block a user