Displaying Battery Info in a Tint2 Panel


2013-10-01

To display information about your laptop's battery in a tint2 panel, you'll need the following lines in your tint2rc config file:

# Battery
battery = 1
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
battery_hide = 98
bat1_font = sans 14
bat2_font = sans 12
battery_font_color = #FFFFFF 100
battery_padding = 3 0
battery_background_id = 0

Using Ubuntu 12.04, my tint2rc is located at ~/.config/tint2/tint2rc. tint2 is a lightweight panel application that is a great match for window managers like openbox.