Debian Codegraph @

docs/content/usage/widgets/battery.md

raw symbols SCIP
1 # Battery Widget
2
3 !!! Warning
4
5 The battery features are unavailable if the binary is compiled with the `battery` feature disabled or if there are no batteries on the system!
6
7 The battery widget provides information about batteries on the system.
8
9 <figure>
10 <img src="../../../assets/screenshots/battery.webp" alt="A picture of an expanded battery widget."/>
11 </figure>
12
13 The battery widget can be enabled through either the `--battery` flag, the `battery = true` option in a config file, or specifying the widget in a custom layout.
14
15 ## Features
16
17 The following data is displayed for batteries:
18
19 - Charge percent
20 - Consumption rate
21 - Charging state
22 - Time to empty/charge, based on the current state
23 - Battery health percent
24
25 The battery widget also supports devices with multiple batteries, and you can switch between them using the keyboard or the mouse.
26
27 ## Key bindings
28
29 Note that key bindings are generally case-sensitive.
30
31 | Binding | Action |
32 | ------------------------------------- | ---------------------------------------------------------- |
33 | ++left++ <br/> ++h++ <br/> ++alt+h++ | Moves to the battery entry to the left of the current one |
34 | ++right++ <br/> ++l++ <br/> ++alt+l++ | Moves to the battery entry to the right of the current one |
35
36 ## Mouse bindings
37
38 | Binding | Action |
39 | ----------- | ----------------------- |
40 | ++lbutton++ | Selects a battery entry |