scripts/waybar/waybar-mem.sh

4 lines
145 B
Bash
Raw Normal View History

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