configs/desktop/scripts/memory.sh
Lucas Barbieri b55a2629fb move scripts to the right dir
turns out i was dumping them in 2 different places lmao
2024-01-16 13:08:59 -03:00

13 lines
179 B
Bash
Executable File

#!/bin/bash
# More efficient version of the above.
free -h | while read What TTL Used _; do
if [ "$What" = 'Mem:' ]; then
printf '%s/%s \n' "$Used" "$TTL"
break
fi
done