Expand description

Display the status of a service

Right now only systemd is supported.

§Configuration

KeyValuesDefault
driverWhich init system is running the service. Available drivers are: "systemd""systemd"
serviceThe name of the serviceRequired
active_formatA string to customise the output of this block. See below for available placeholders." $service active "
inactive_formatA string to customise the output of this block. See below for available placeholders." $service inactive "
active_stateA valid StateState::Idle
inactive_stateA valid StateState::Critical
PlaceholderValueTypeUnit
serviceThe name of the serviceText-

§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"

Structs§

Enums§

Functions§