dotfiles/.config/waybar/iscripts/mem_info.sh

7 lines
126 B
Bash
Raw Normal View History

2022-05-01 03:00:26 +02:00
#!/bin/bash
mem_info=$(free -h | awk '/Mem:/ { printf(" %5s/%s \n", $3, $2) }')
echo -n " "
echo -n ${mem_info}
echo " "