scripts/waybar/waybar-mem.sh

6 lines
165 B
Bash
Raw Normal View History

2020-09-11 15:00:39 +00:00
#!/bin/bash
2020-11-23 09:35:26 +00:00
notify-send 'Memory Usage' "`free -h | \
awk '{printf(\"%6s %6s %6s %6s\n\", $1, $2, $3, $4)}' | \
sed -r 's/(.*) shared$/ \1/'`"