Battery info

Manually forked from https://github.com/richoH/dotfiles/blob/master/bin/battery

Place in your ~/bin folder and now the command 'battery' will show you your battery percentage in Ubuntu.

I have this set to always display in my Tmux pane with set -g status-right "#(~/bin/battery) | #[fg=cyan]%d %b %R" 

Modified so when charging it will also work, tested on Ubuntu.