Files
dotfiles/tmux/powerline/segments/rainbarf.sh
2019-01-12 18:22:02 +01:00

17 lines
312 B
Bash
Executable File

# Print out Memory and CPU using https://github.com/creaktive/rainbarf
run_segment() {
type rainbarf >/dev/null 2>&1
if [ "$?" -ne 0 ]; then
echo 'rainbarf was not found'
return
fi
# Customize via ~/.rainbarf.conf
stats=$(rainbarf --tmux)
if [ -n "$stats" ]; then
echo "$stats";
fi
return 0
}