mirror of
https://github.com/bvanroll/_dotfiles.git
synced 2025-08-30 04:22:47 +00:00
init
This commit is contained in:
35
.config/i3blocks/systemd_unit/README.md
Normal file
35
.config/i3blocks/systemd_unit/README.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# systemd_unit
|
||||
|
||||
Show the status of a systemd unit as active, inactive or failed. This
|
||||
blocklet uses dbus-send to get the current state of a systemd
|
||||
unit. Both system and user units are supported.
|
||||
|
||||

|
||||
|
||||
# Config
|
||||
|
||||
Simple example for dhcpd service:
|
||||
```
|
||||
[dhcpcd_service]
|
||||
command=$SCRIPT_DIR/systemd_unit
|
||||
markup=pango
|
||||
label=dhcpcd:
|
||||
interval=30
|
||||
UNIT_NAME=dhcpcd.service
|
||||
```
|
||||
|
||||
Full example for dhcpd service:
|
||||
```
|
||||
[dhcpcd_service]
|
||||
command=$SCRIPT_DIR/systemd_unit
|
||||
markup=pango
|
||||
label=dhcpcd:
|
||||
interval=30
|
||||
UNIT_NAME=dhcpcd.service
|
||||
USER_UNIT=false
|
||||
ACTIVE_COLOR=green
|
||||
INACTIVE_COLOR=orange
|
||||
FAILED_COLOR=red
|
||||
```
|
||||
|
||||
For user units set `USER_UNIT=true`
|
Reference in New Issue
Block a user