Module i3status_rs::blocks::service_status
source · Expand description
Display the status of a service
Right now only systemd
is supported.
§Configuration
Key | Values | Default |
---|---|---|
driver | Which init system is running the service. Available drivers are: "systemd" | "systemd" |
service | The name of the service | Required |
active_format | A string to customise the output of this block. See below for available placeholders. | " $service active " |
inactive_format | A string to customise the output of this block. See below for available placeholders. | " $service inactive " |
active_state | A valid State | State::Idle |
inactive_state | A valid State | State::Critical |
Placeholder | Value | Type | Unit |
---|---|---|---|
service | The name of the service | Text | - |
§Example
Example using an icon:
[[block]]
block = "service_status"
service = "cups"
active_format = " ^icon_tea "
inactive_format = " no ^icon_tea "
Example overriding the default inactive_state
:
[[block]]
block = "service_status"
service = "shadow"
active_format = ""
inactive_format = " Integrity of password and group files failed "
inactive_state = "Warning"