clean up scripts
This commit is contained in:
11
.config/polybar/scripts/isrunning-service.sh
Normal file
11
.config/polybar/scripts/isrunning-service.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
UNIT="docker.service"
|
||||
|
||||
journalctl --follow -o cat --unit $UNIT | while read -r; do
|
||||
if [ "$(systemctl is-active "$UNIT")" = "active" ]; then
|
||||
echo "#1"
|
||||
else
|
||||
echo "#2"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user