I recently switched to Awesome as my window manager, because I wanted to try out a tiled wm. And I love it. It makes it so easy to separate my windows into what I'm currently working on. But one thing that I wanted to make sure that I had a good widget for was for my battery. My battery widget uses Vicious and a simple shell script that colors the percentage for easy reading. The shell script I found on a website and modified it a little. I'm going to try my hardest to find that website, but if you know which one it is please let me know! (EDIT: found it!) A couple things you need:

  • smapi
  • Awesome 3.5 (I haven't tested it on anything else)

The shell script is:

I then call it in my rc.lua with the following:

And then later in my rc.lua called it in my widget location: