nickpelone / rbatmon

A bare-bones battery monitor written in Ruby for reading composite UPower DisplayDevice virtual batteries. Perfect for laptops with 2 or more batteries. Requires ruby-dbus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rbatmon

A simple tool for reading the percent remaining from UPower composite DisplayDevices. Requires ruby-dbus.

Example:

$ echo "Battery remaining: `rbatmon`%"
Battery remaining: 40%

About

A bare-bones battery monitor written in Ruby for reading composite UPower DisplayDevice virtual batteries. Perfect for laptops with 2 or more batteries. Requires ruby-dbus


Languages

Language:Ruby 100.0%