2026-08-16 17:16:42 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
2026-08-17 11:07:40 +02:00
|
|
|
# Services (e.g. systemd --user units) run with a minimal PATH that skips
|
|
|
|
|
# shell-init-only additions like pyenv shims or pip's --user bin dir, even
|
|
|
|
|
# though those tools are installed. Add the common locations as a fallback.
|
|
|
|
|
export PATH="$HOME/.local/bin:$HOME/.pyenv/shims:$PATH"
|
|
|
|
|
|
2026-08-17 11:03:54 +02:00
|
|
|
if ! command -v openrgb-hue >/dev/null 2>&1; then
|
|
|
|
|
echo "error: 'openrgb-hue' was not found on PATH." >&2
|
|
|
|
|
echo "Install it with:" >&2
|
|
|
|
|
echo " pip install --index-url https://dev.pivoine.art/api/packages/valknar/pypi/simple/ --extra-index-url https://pypi.org/simple openrgb-hue" >&2
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
exec openrgb-hue apply "$SCENE" "$@"
|