isrunning-docker: add script

This commit is contained in:
x70b1 2019-05-02 21:56:01 +02:00
parent 1b308586f4
commit df73bc91d7
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# Script: isrunning-docker
A script that shows if te docker is running.
## Module
```ini
[module/isrunning-docker]
type = custom/script
exec = ~/polybar-scripts/isrunning-docker.sh
interval = 10
```

View File

@ -0,0 +1,7 @@
#!/bin/sh
if [ "$(systemctl is-active docker.service)" = "active" ]; then
echo "#1"
else
echo "#2"
fi