- 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
53 lines
1.3 KiB
Bash
53 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
ROOT=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
|
|
|
|
if ! command -v quickshell >/dev/null 2>&1; then
|
|
printf 'quickshell-detached-test: skipped (quickshell not installed)\n'
|
|
exit 0
|
|
fi
|
|
|
|
TMP=$(mktemp -d)
|
|
trap 'rm -rf -- "$TMP"' EXIT
|
|
|
|
BIN="$TMP/bin"
|
|
TEST_HOME="$TMP/home"
|
|
PLUGINS="$TEST_HOME/.config/omarchy/plugins"
|
|
STATUS="$TMP/update.status"
|
|
mkdir -p -- "$BIN" "$PLUGINS"
|
|
|
|
for id in slow good; do
|
|
dir="$PLUGINS/$id"
|
|
git init -q -b main "$dir"
|
|
git -C "$dir" config user.name "Omaplug Tests"
|
|
git -C "$dir" config user.email "omaplug-tests@example.invalid"
|
|
printf '{"id":"%s"}\n' "$id" > "$dir/manifest.json"
|
|
git -C "$dir" add manifest.json
|
|
git -C "$dir" commit -qm "fixture"
|
|
done
|
|
|
|
cat > "$BIN/omarchy" <<'EOF'
|
|
#!/bin/bash
|
|
[[ ${3:-} == slow ]] && sleep 0.4
|
|
printf 'updated %s\n' "${3:-}"
|
|
EOF
|
|
chmod +x "$BIN/omarchy"
|
|
|
|
PATH="$BIN:$PATH" \
|
|
HOME="$TEST_HOME" \
|
|
OMAPLUG_TEST_HELPER="$ROOT/update-helper.sh" \
|
|
OMAPLUG_TEST_STATUS="$STATUS" \
|
|
QT_QPA_PLATFORM=offscreen \
|
|
quickshell --no-color -p "$ROOT/tests/DetachedLaunch.qml" >/dev/null 2>&1
|
|
|
|
for _ in {1..200}; do
|
|
grep -Fqx $'done\t2\t0' "$STATUS" 2>/dev/null && break
|
|
sleep 0.01
|
|
done
|
|
|
|
grep -Fqx $'job\tjob-quickshell' "$STATUS"
|
|
grep -Fqx $'done\t2\t0' "$STATUS"
|
|
printf 'quickshell-detached-test: ok\n'
|