2025-06-22 21:18:32 +03: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\"}"