treewide: Add support for ayatana battery and charger

This commit is contained in:
Marius Gripsgard
2023-09-21 04:02:57 +02:00
parent a6e3ba2c61
commit b5d5f52894
7 changed files with 186 additions and 168 deletions

View File

@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
<interface name="org.ayatana.indicator.power.Battery">
<property name="PowerLevel" type="s" access="read">
<doc:doc>
<doc:description>
<doc:para>The battery's power level. Possible values: 'ok', 'low', 'very_low', 'critical'</doc:para>
</doc:description>
</doc:doc>
</property>
<property name="PowerPercentage" type="i" access="read">
<doc:doc>
<doc:description>
<doc:para>The battery's power level in percentage.</doc:para>
</doc:description>
</doc:doc>
</property>
<property name="IsWarning" type="b" access="read">
<doc:doc>
<doc:description>
<doc:para>Whether or not ayatana-indicator-power-service is warning the user about low battery power.</doc:para>
</doc:description>
</doc:doc>
</property>
<property name="IsDischarging" type="b" access="read">
<doc:doc>
<doc:description>
<doc:para>Whether or not the battery is discharging</doc:para>
</doc:description>
</doc:doc>
</property>
</interface>
</node>