SPB Git

Repository Public License

screenshots.sh 3.4 KB 71 lines shellscript

1#!/usr/bin/env bash2# =============================================================================3#                  SP BOUCHER | INFRASTRUCTURE & AUTOMATION4#             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project          : ORIX Monitor8# File             : Scripts/screenshots.sh9# Description      : Captures the README screenshot set from one isolated10#                    instance at a time, all sharing one data directory so11#                    history pages have real stored samples.12# Module           : Scripts13# Repository       : https://git.spboucher.ai/orix-monitor14# Created          : 2026-11-2115# Last Modified    : 2026-11-2116#17# Author           : Simon-Pierre Boucher18# Position         : Professor of Finance19# Institution      : Université du Québec en Outaouais (UQO)20# Organization     : SP Boucher21# Website          : https://spboucher.ai22# Git              : https://git.spboucher.ai23#24# Preferred Contact: support@spboucher.ai25# Technical Contact: dev@spboucher.ai26# Security/Admin   : admin@spboucher.ai27#28# Copyright (c) 202629# Simon-Pierre Boucher30# All rights reserved where applicable. This file is governed by the31# applicable project license, copyright notices and relevant law.32# Existing third-party rights and notices remain unaffected.33#34# License          : Proprietary, all rights reserved (see license file)35# License File     : LICENSE36#37# Do not embed credentials, private keys, access tokens,38# certificates or confidential personal information.39#40# =============================================================================41# END OF SP BOUCHER SOURCE HEADER42# =============================================================================4344set -euo pipefail45cd "$(dirname "$0")/.."46export ORIX_APP="${ORIX_APP:-dist/ORIX Monitor.app}"47export ORIX_DATA="$(mktemp -d /tmp/orix-shots.XXXXXX)"48OUT=docs/screenshots; mkdir -p "$OUT"49shot() { Scripts/shot.sh "$@" -ORIXInterval 1 || echo "FAILED: $1"; }50# The first instance runs longest: it fills the store the later pages read from.51shot "$OUT/dashboard-dark.png" overview dark 7552for section in cpu gpu memory disk network processes power thermal; do shot "$OUT/$section.png" "$section" dark 24; done53shot "$OUT/history.png" history dark 1454shot "$OUT/insights.png" insights dark 1455shot "$OUT/alerts.png" alerts dark 1456shot "$OUT/reports.png" reports dark 1457shot "$OUT/dashboard-light.png" overview light 2458shot "$OUT/cpu-light.png" cpu light 2459shot "$OUT/memory-light.png" memory light 2460shot "$OUT/dashboard-performance.png" overview dark 24 -ORIXPreset Performance61ORIX_LANG=fr-CA ORIX_LOCALE=fr_CA shot "$OUT/dashboard-fr-CA.png" overview dark 2462ORIX_WINDOW="General\|Sampling\|History\|Menu Bar\|Privacy\|About" shot "$OUT/settings.png" overview dark 12 -ORIXOpenSettings YES63# The menu bar panel, shown in a plain window: on the capture Mac the status item itself is hidden behind the notch.64ORIX_WINDOW="Menu Bar Panel" shot "$OUT/menubar-panel.png" overview dark 22 -ORIXShowMenuPanel YES65# The status item image, written by the app exactly as the menu bar draws it.66"$ORIX_APP/Contents/MacOS/ORIX Monitor" -ORIXUITest YES -ORIXDataDir "$ORIX_DATA" -ORIXInterval 1 -ORIXPrivacy YES -ORIXAppearance dark \67  -AppleLanguages "(en)" -AppleLocale en_US -ORIXExportMenuBar "$PWD/$OUT" >/dev/null 2>&1 &68PID=$!; sleep 30; kill $PID 2>/dev/null || true69rm -rf "$ORIX_DATA"70ls "$OUT"/*.png | wc -l71
Files main
Menu

Theme