Skip to content

Commit a9e617f

Browse files
authored
Clarify battery docs
1 parent 71e1ed3 commit a9e617f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/blocks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ format = "{percentage} {time}"
239239

240240
Key | Values | Required | Default
241241
----|--------|----------|--------
242-
`device` | The device in `/sys/class/power_supply/` to read from. When using UPower, this can also be `"DisplayDevice"`. Defaults to finding the first `"BAT"` file in `/sys/class/power_supply`. | No | `"BAT0"`
242+
`device` | The device in `/sys/class/power_supply/` to read from. When using UPower, this can also be `"DisplayDevice"`. | No | sysfs: the first device starting with `"BAT"` in `/sys/class/power_supply`, usually "BAT0". upower: first device returned by the `EnumerateDevices` D-Bus method`
243243
`driver` | One of `"sysfs"` or `"upower"`. | No | `"sysfs"`
244244
`interval` | Update interval, in seconds. Only relevant for `driver = "sysfs"`. | No | `10`
245245
`format` | A string to customise the output of this block. See below for available placeholders. Text may need to be escaped, refer to [Escaping Text](#escaping-text). | No | `"{percentage}"`

0 commit comments

Comments
 (0)