DBus part 3 

sub dbus_acpi_info {
  my $charge = get_percent();
  get_online() 
    ? "$charge% online"
    : "$charge% " . get_remaining();
}