Files
omarchy/plugins/omaplug/auto-check-coordinator.sh
asepharyana 1cdb82a76f Sync config from arch
- hypr/apps.lua
- hypr/autostart.lua
- hypr/envs.lua
- hypr/hyprland.lua
- hypr/hyprsunset.conf
- hypr/input.lua
- hypr/looknfeel.lua
- hypr/omasettings.lua
- hypr/xdph.conf
- omarchy/branding/about.txt
- omarchy/branding/screensaver.txt
- omarchy/extensions/omarchy-menu.jsonc
- omarchy/hooks/battery-low.d/play-warning-sound.sample
- omarchy/hooks/font-set.d/show-font-notification.sample
- omarchy/hooks/post-boot.d/weather.sample
- omarchy/hooks/post-update.d/install-voxtype.hook
- omarchy/hooks/post-update.d/setup-agent.hook
- omarchy/hooks/post-update.d/setup-fingerprint.hook
- omarchy/hooks/post-update.d/show-update-notification.sample
- omarchy/hooks/pre-refresh-pacman.d/add-custom-repo.sample
- omarchy/hooks/theme-set.d/show-theme-notification.sample
- omarchy/shell.json
- omarchy/shell.toml
- omarchy/theme.name
- omarchy/themes/azure-glow/README.md
- omarchy/themes/azure-glow/alacritty.toml
- omarchy/themes/azure-glow/btop.theme
- omarchy/themes/azure-glow/hyprland.conf
- omarchy/themes/azure-glow/hyprlock.conf
- omarchy/themes/azure-glow/icons.theme
- … 269 more
2026-09-23 15:19:12 +07:00

24 lines
1.0 KiB
Bash

#!/bin/bash
# Coordinates plugin-state.sh across the bar's per-monitor instances. The
# omaplug widget exists once per monitor, each running its own independent
# Panel.qml and its own background auto-check Timer, so an unattended tick
# firing at (roughly) the same moment on every monitor would otherwise run
# N fully redundant git-fetch passes over every installed plugin. This wraps
# plugin-state.sh with a lock + shared cache so only one instance's tick
# does the real work; the others reuse its output.
#
# The manual "Check for updates" button in the panel bypasses this entirely
# and always calls plugin-state.sh directly - only the unattended Timer path
# (Panel.qml's autoUpdateCheckTimer) uses this wrapper.
#
# Usage: auto-check-coordinator.sh <plugins-dir>
# Output: identical CHECK/state line format to plugin-state.sh.
set -euo pipefail
PLUGINS_DIR="${1:?usage: auto-check-coordinator.sh <plugins-dir>}"
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
exec python3 "$SCRIPT_DIR/runtime-state.py" check "$PLUGINS_DIR"