2022-11-06 22:52:21 +00:00
Displays one or more labels containing system information.
Separating information across several labels allows for styling each one independently.
Pango markup is supported.

## Configuration
2022-11-28 22:23:33 +00:00
> Type: `sys_info`
2022-11-06 22:52:21 +00:00
| Name | Type | Default | Description |
|--------------------|--------------------|---------|--------------------------------------------------------------------------------------------------------------------------------|
| `format` | `string[]` | `null` | Array of strings including formatting tokens. For available tokens see below. |
| `interval` | `integer` or `Map` | `5` | Seconds between refreshing. Can be a single value for all data or a map of individual refresh values for different data types. |
| `interval.memory` | `integer` | `5` | Seconds between refreshing memory data |
| `interval.cpu` | `integer` | `5` | Seconds between refreshing cpu data |
| `interval.temps` | `integer` | `5` | Seconds between refreshing temperature data |
| `interval.disks` | `integer` | `5` | Seconds between refreshing disk data |
| `interval.network` | `integer` | `5` | Seconds between refreshing network data |
2024-04-05 13:28:47 -04:00
| `orientation` | `'horizontal'` or `'vertical'` (shorthand: `'h'` or `'v'` ) | `'horizontal'` | Orientation of the labels. |
| `direction` | `'horizontal'` or `'vertical'` (shorthand: `'h'` or `'v'` ) | `'horizontal'` | How the labels are laid out (not the rotation of an individual label). |
2022-11-06 22:52:21 +00:00
< details >
< summary > JSON< / summary >
```json
{
"end": [
{
"format": [
2023-12-15 02:13:29 -08:00
" {cpu_percent}% | {temp_c:k10temp-Tccd1}°C",
2022-11-28 22:23:33 +00:00
" {memory_used} / {memory_total} GB ({memory_percent}%)",
"| {swap_used} / {swap_total} GB ({swap_percent}%)",
2023-12-28 01:11:54 -05:00
" {disk_used:/} / {disk_total:/} GB ({disk_percent:/}%)",
" {net_down:enp39s0} / {net_up:enp39s0} Mbps",
" {load_average:1} | {load_average:5} | {load_average:15}",
" {uptime}"
2022-11-06 22:52:21 +00:00
],
"interval": {
"cpu": 1,
"disks": 300,
"memory": 30,
"networks": 3,
"temps": 5
},
2022-11-28 22:23:33 +00:00
"type": "sys_info"
2022-11-06 22:52:21 +00:00
}
]
}
```
< / details >
< details >
< summary > TOML< / summary >
```toml
[[end]]
2022-11-28 22:23:33 +00:00
type = 'sys_info'
2022-11-06 22:52:21 +00:00
format = [
2023-12-15 02:13:29 -08:00
' {cpu_percent}% | {temp_c:k10temp-Tccd1}°C',
2022-11-28 22:23:33 +00:00
' {memory_used} / {memory_total} GB ({memory_percent}%)',
'| {swap_used} / {swap_total} GB ({swap_percent}%)',
2023-12-28 01:11:54 -05:00
' {disk_used:/} / {disk_total:/} GB ({disk_percent:/}%)',
' {net_down:enp39s0} / {net_up:enp39s0} Mbps',
' {load_average:1} | {load_average:5} | {load_average:15}',
' {uptime}',
2022-11-06 22:52:21 +00:00
]
[end.interval]
cpu = 1
disks = 300
memory = 30
networks = 3
temps = 5
```
< / details >
< details >
< summary > YAML< / summary >
```yaml
end:
- format:
2023-12-15 02:13:29 -08:00
- ' {cpu_percent}% | {temp_c:k10temp-Tccd1}°C'
2022-11-28 22:23:33 +00:00
- ' {memory_used} / {memory_total} GB ({memory_percent}%)'
- '| {swap_used} / {swap_total} GB ({swap_percent}%)'
2023-12-28 01:11:54 -05:00
- ' {disk_used:/} / {disk_total:/} GB ({disk_percent:/}%)'
- ' {net_down:enp39s0} / {net_up:enp39s0} Mbps'
- ' {load_average:1} | {load_average:5} | {load_average:15}'
- ' {uptime}'
2022-11-06 22:52:21 +00:00
interval:
cpu: 1
disks: 300
memory: 30
networks: 3
temps: 5
2022-11-28 22:23:33 +00:00
type: sys_info
2022-11-06 22:52:21 +00:00
```
< / details >
< details >
< summary > Corn< / summary >
```corn
{
end = [
{
2022-11-28 22:23:33 +00:00
type = "sys_info"
2022-11-06 22:52:21 +00:00
interval.memory = 30
interval.cpu = 1
interval.temps = 5
interval.disks = 300
interval.networks = 3
format = [
2023-12-15 02:13:29 -08:00
" {cpu_percent}% | {temp_c:k10temp-Tccd1}°C"
2022-11-28 22:23:33 +00:00
" {memory_used} / {memory_total} GB ({memory_percent}%)"
"| {swap_used} / {swap_total} GB ({swap_percent}%)"
2023-12-28 01:11:54 -05:00
" {disk_used:/} / {disk_total:/} GB ({disk_percent:/}%)"
" {net_down:enp39s0} / {net_up:enp39s0} Mbps"
" {load_average:1} | {load_average:5} | {load_average:15}"
" {uptime}"
2022-11-06 22:52:21 +00:00
]
}
]
}
```
< / details >
### Formatting Tokens
The following tokens can be used in the `format` configuration option:
| Token | Description |
|--------------------------|------------------------------------------------------------------------------------|
| **CPU** | |
2022-11-28 22:23:33 +00:00
| `{cpu_percent}` | Total CPU utilisation percentage |
2022-11-06 22:52:21 +00:00
| **Memory** | |
2022-11-28 22:23:33 +00:00
| `{memory_free}` | Memory free in GB. |
| `{memory_used}` | Memory used in GB. |
| `{memory_total}` | Memory total in GB. |
| `{memory_percent}` | Memory utilisation percentage. |
| `{swap_free}` | Swap free in GB. |
| `{swap_used}` | Swap used in GB. |
| `{swap_total}` | Swap total in GB. |
| `{swap_percent}` | Swap utilisation percentage. |
2022-11-06 22:52:21 +00:00
| **Temperature** | |
2022-11-28 22:23:33 +00:00
| `{temp_c:[sensor]}` | Temperature in degrees C. Replace `[sensor]` with the sensor label. |
| `{temp_f:[sensor]}` | Temperature in degrees F. Replace `[sensor]` with the sensor label. |
2022-11-06 22:52:21 +00:00
| **Disk** | |
2022-11-28 22:23:33 +00:00
| `{disk_free:[mount]}` | Disk free space in GB. Replace `[mount]` with the disk mountpoint. |
| `{disk_used:[mount]}` | Disk used space in GB. Replace `[mount]` with the disk mountpoint. |
| `{disk_total:[mount]}` | Disk total space in GB. Replace `[mount]` with the disk mountpoint. |
| `{disk_percent:[mount]}` | Disk utilisation percentage. Replace `[mount]` with the disk mountpoint. |
2022-11-06 22:52:21 +00:00
| **Network** | |
2022-11-28 22:23:33 +00:00
| `{net_down:[adapter]}` | Average network download speed in Mbps. Replace `[adapter]` with the adapter name. |
| `{net_up:[adapter]}` | Average network upload speed in Mbps. Replace `[adapter]` with the adapter name. |
2022-11-06 22:52:21 +00:00
| **System** | |
2022-11-28 22:23:33 +00:00
| `{load_average:1}` | 1-minute load average. |
| `{load_average:5}` | 5-minute load average. |
| `{load_average:15}` | 15-minute load average. |
2022-11-06 22:52:21 +00:00
| `{uptime}` | System uptime formatted as `HH:mm` . |
2023-12-15 02:13:29 -08:00
For Intel CPUs, you can typically use `coretemp-Package-id-0` for the temperature sensor. For AMD, you can use `k10temp-Tccd1` .
2023-05-07 17:50:17 +01:00
2022-11-06 22:52:21 +00:00
## Styling
| Selector | Description |
|------------------|------------------------------|
2023-05-06 00:40:06 +01:00
| `.sysinfo` | Sysinfo widget box |
| `.sysinfo .item` | Individual information label |
2023-05-07 17:50:17 +01:00
For more information on styling, please see the [styling guide ](styling-guide ).