dotfiles-x11/.local/bin/statusbar/sb-memory

3 lines
162 B
Bash
Executable File

#!/bin/sh
echo "[  $(free --mebi | sed -n '2{p;q}' | awk '{printf ("%2.2fGiB", ( $3 / 1024), ($2 / 1024))}') $(sensors | awk '/Core 0/ {print " " $3}') ]"