aboutsummaryrefslogtreecommitdiff
path: root/data/com.canonical.indicator.power.gschema.xml.in
blob: e9bfcf5ca4398788910982536d9272563d21420e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<schemalist>
  <enum id="icon-policy-enum">
    <value nick="present" value="0" />
    <value nick="charge" value="1" />
    <value nick="never" value="2" />
  </enum>
  <schema gettext-domain="@GETTEXT_PACKAGE@" id="com.canonical.indicator.power" path="/com/canonical/indicator/power/">
    <key name="show-time" type="b">
      <default>false</default>
      <_summary>Show time in Menu Bar</_summary>
      <_description>Whether or not to show the time in the menu bar.</_description>
    </key>
    <key name="show-percentage" type="b">
      <default>false</default>
      <_summary>Show percentage in Menu Bar</_summary>
      <_description>Whether or not to show the percentage in the menu bar.</_description>
    </key>
    <key enum="icon-policy-enum" name="icon-policy">
      <default>"present"</default>
      <_summary>When to show the battery status in the menu bar.</_summary>
      <_description>Options for when to show battery status. Valid options are "present", "charge", and "never".</_description>
    </key>

    <key name="mock-battery-enabled" type="b">
      <default>false</default>
      <_summary>Whether to use a mock battery for testing.</_summary>
      <_description>When enabled, a single mock battery will be used instead of monitoring upower.</_description>
    </key>
    <key name="mock-battery-level" type="i">
      <range min="0" max="100"/>
      <default>50</default>
      <_summary>The charge level of the mock battery.</_summary>
      <_description>The charge level of the mock battery.</_description>
    </key>
    <key name="mock-battery-charging" type="b">
      <default>false</default>
      <_summary>Charge state of the mock battery</_summary>
      <_description>Whether the mock battery is charging or discharging</_description>
    </key>
    <key name="mock-battery-minutes-left" type="i">
      <range min="0" max="420"/>
      <default>30</default>
      <_summary>Time remaining on the battery</_summary>
      <_description>Minutes left until the battery finishes charging/discharging</_description>
    </key>
      
  </schema>
</schemalist>