Update blacklayer-worker.sh

This commit is contained in:
FURK4NGG
2026-01-19 00:17:33 +03:00
committed by GitHub
parent 7ea3c36339
commit 94c42832f4
+2
View File
@@ -63,6 +63,8 @@ while true; do
ISWORKING=$(<"$STATE_FILE")
if [ "$ISWORKING" = "false" ] && ! pgrep -f "$BLACKLAYER_BIN $MONITOR_NAME" >/dev/null 2>&1; then
pkill -f "waybar.*$MONITOR_NAME" 2>/dev/null
"$BLACKLAYER_BIN" "$MONITOR_NAME" &
nohup bash -c "$EVENT_DRIVEN $MONITOR_NAME $EVENT_POLL_INTERVAL" >/dev/null 2>&1 &
echo "true" > "$STATE_FILE"