2025-07-05 14:00:00 +00:00

4 lines
146 B
Bash
Executable File

#!/bin/bash
read total used <<<$(free -m | awk '/Mem:/ {print $2, $3}')
echo "{\"text\":\" ${used}M/${total}M\",\"tooltip\":\"Memory Usage\"}"