scripts/waybar/waybar-mem.sh

4 lines
145 B
Bash
Executable File

#!/bin/bash
notify-send 'Memory Usage' "`free -h | awk '{printf(\"%6s %6s %6s %6s\n\", $1, $2, $3, $4)}' | sed -r 's/(.*) shared$/ \1/'`"