aboutsummaryrefslogtreecommitdiff
path: root/i3blocks/i3mem.sh
blob: fc7b94d2b1d75561357e4331d9251786ee438f3e (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

case $BLOCK_BUTTON in
	1) dunstify -r $(dunstifyIDs.sh "memory") -t 5000 "Highest RAM processes:
$(ps axch -o cmd:18,%mem --sort=-%mem | sed 10q)" ;;
esac

free -h | awk '/^Mem/ {print $3 "/" $2}'
free -h | awk '/^Mem/ {print $3}'