Krolyxon
Commit d31711a

Branches

Refs →

dotfiles-x11.localbinstatusbarsb-memory

4 lines · 284 B · Bourne Again Shell (bash)

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
4echo "[  $(free -h --si | sed -n "2s/\([^ ]* *\)\{2\}\([^ ]*\).*/\2/p")  $(grep -o "^[^ ]*" /proc/loadavg ) ]"