mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
13 lines
295 B
Bash
13 lines
295 B
Bash
#!/bin/bash
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
sleep 0.5s
|
|
|
|
if systemctl --user is-active konawall-rotation.timer --quiet; then
|
|
status='{"text": "", "alt": "Konawall is enabled.", "class": "enabled"}'
|
|
else
|
|
status='{"text": "", "alt": "Konawall is disabled.", "class": "disabled"}'
|
|
fi
|
|
|
|
echo $status
|