Battery life as hearts in tmux
Ever wanted to have your battery charge visible in your favourite terminal multiplexer? What about this:
Looks awesome? Then look no further than this little script I created! It shows you the current charge as red hearts, empty as white hearts, and dead as black hearts. Dead means the difference between the design charge and the last full charge. The script checks common locations of battery information and extracts the data from there. It should also work on OS X, although, I haven’t tested it in a while because of a lack of Mac products ;)
The repository also contains an example tmux configuration file to show how to integrate it.
The script was originally inspired by another blog entry.