initial
This commit is contained in:
16
tmux/powerline/segments/rainbarf.sh
Executable file
16
tmux/powerline/segments/rainbarf.sh
Executable file
@ -0,0 +1,16 @@
|
||||
# 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
|
||||
}
|
Reference in New Issue
Block a user