Krolyxon
Auto
Light
Dark
Summary
Tree
Log
Refs
Find
Commit
3a29b4e
Branches
master
Refs →
dotfiles-x11
/
.local
/
bin
/
statusbar
/
sb-memory
4 lines · 284 B · Bourne Again Shell (bash)
Raw
Blame
History
Download
1
#!/bin/sh
2
# echo "[ $(free --mebi | sed -n '2{p;q}' | awk '{printf ("%2.2fGiB", ( $3 / 1024), ($2 / 1024))}') $(sensors | awk '/Core 0/ {print " " $3}') ]"
3
4
echo
"[ $(free -h --si | sed -n "2s/\([^ ]* *\)\{2\}\([^ ]*\).*/\2/p") $(grep -o "^[^ ]*" /proc/loadavg ) ]"