Minor alterations.

This commit is contained in:
Derek Taylor
2019-04-24 23:47:06 -05:00
parent 55a74259a4
commit 43210314f8
3 changed files with 5 additions and 10 deletions

View File

@@ -5,17 +5,12 @@ urxvtd -q -o -f &
dte(){
dte="$(date +"%A, %B %d | 🕒 %l:%M%p")"
echo -e "📅 $dte"
}
upd(){
upd=`checkupdates | wc -l`
echo -e "⟳ $upd updates"
echo -e "$dte"
}
mem(){
mem=`free | awk '/Mem/ {printf "%d MiB/%d MiB\n", $3 / 1024.0, $2 / 1024.0 }'`
echo -e "🖪 $mem"
echo -e "🖪 $mem"
}
cpu(){
@@ -25,7 +20,7 @@ cpu(){
read cpu a b c idle rest < /proc/stat
total=$((a+b+c+idle))
cpu=$((100*( (total-prevtotal) - (idle-previdle) ) / (total-prevtotal) ))
echo -e "💻 $cpu% cpu"
echo -e "💻 $cpu% cpu"
}
while true; do