Debian Codegraph @

docs/content/configuration/config-file/temperature-table.md

raw symbols SCIP
1 # Temperature Table Configuration
2
3 The temperature table widget is configured under `[temperature]`.
4
5 ## Default Sort Column
6
7 You can customize the default sort column (by default, it sorts by temperature sensor name in ascending order). For example, to sort by temperature:
8
9 ```toml
10 [temperature]
11 default_sort = "Temp"
12 ```
13
14 You can also set the sort order by changing `temperature.sort_order` with `"Ascending"` or `"Descending"`. Defaults to
15 `"Ascending"`:
16
17 ```toml
18 [temperature]
19 sort_order = "Ascending"
20 ```
21
22 ## Filtering Entries
23
24 You can filter out what entries to show by configuring `[temperature.sensor_filter]`. In particular you can set a list of things to filter with by setting `list`, and configure how that list is processed with the other options.
25
26 For example, here we are ignoring any sensor that has "cpu" or "wifi" in it.
27
28 ```toml
29 [temperature.sensor_filter]
30 # Whether to ignore any matches. Defaults to true.
31 is_list_ignored = true
32
33 # A list of filters to try and match.
34 list = ["cpu", "wifi"]
35
36 # Whether to use regex. Defaults to false.
37 regex = false
38
39 # Whether to be case-sensitive. Defaults to false.
40 case_sensitive = false
41
42 # Whether to require matching the whole word. Defaults to false.
43 whole_word = false
44 ```