dotfiles/dot_config/i3/executable_mem

9 lines
235 B
Text
Raw Permalink Normal View History

2023-01-30 14:28:59 +01:00
#!/bin/bash
# Show used and total memory
available=$(awk '/MemAvailable/ {$2=$2/1024; printf("%3.2f\n", $2)}' /proc/meminfo)
total=$(awk '/MemTotal/ {$2=$2/1024**2; printf("%3.1f\n", $2)}' /proc/meminfo )
echo "${available}"
echo ""