infrastructure/pkgs/konawall-toggle/status.sh
kat witch 2034846e0a
Moved to tomorrow night eighties. Redone theme.
Redone a number of modules, now they speak JSON. Added a konawall
toggler module. Removed mkchromecast from autostart. Moved from
pavucontrol to pulsemixer.
2021-07-24 05:57:00 +01:00

13 lines
294 B
Bash

#!/bin/bash
set -eu
set -o pipefail
sleep 0.5s
if systemctl --user is-active konawall-rotation.timer --quiet; then
status='{"text": "ROT", "alt": "Konawall is enabled.", "class": "enabled"}'
else
status='{"text": "STA", "alt": "Konawall is disabled.", "class": "disable"}'
fi
echo $status