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

case $BLOCK_BUTTON in
	1) notify-send -h string:x-canonical-private-synchronous:mem -t 5000 "Highest RAM processes:
$(ps axch -o cmd:18,%mem --sort=-%mem | sed 10q)" ;;
esac

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