aboutsummaryrefslogtreecommitdiff
path: root/segments/rainbarf.sh
blob: a9c6c1f889be95063e154a70d2c97f9b8a1f7b78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Print out Memory and CPU using https://github.com/creaktive/rainbarf

run_segment() {
	type rainbarf >/dev/null 2>&1
	if [ "$?" -ne 0 ]; then
		return
	fi

    # Customize via ~/.rainbarf.conf
	stats=$(rainbarf --tmux)
	if [ -n "$stats" ]; then
		echo "$stats";
	fi
	return 0
}