Files
JakeBreath 4889c5c355
CI / Frontend build & lint (push) Successful in 22s
CI / Backend tests (push) Successful in 2m12s
extras/powershell_greeting: fix WezTerm logo stretch (iterm + preserveAspectRatio)
kitty-direct sends c= but no rows through ConPTY (the terminal guesses the height and stretches); the plain kitty type needs tty pixel queries that ConPTY drops. The iterm type with preserveAspectRatio=1 letterboxes any aspect ratio.
2026-09-30 09:44:36 -05:00

27 lines
1.4 KiB
PowerShell

# Copy to %APPDATA%\j621Greeting\config.ps1 and adjust.
# This file runs every time the greeting starts; an environment variable that
# is already set in your session wins over the values here.
# API origin (no trailing slash needed).
if (-not $env:J621_BASE) { $env:J621_BASE = 'https://j621.rainbow-herring.ts.net' }
# Web origin used in the printed link. Only needed when the SPA is served
# from a different host than the API (split deployment).
# if (-not $env:J621_WEB) { $env:J621_WEB = 'https://j621-frontend.rainbow-herring.ts.net' }
# API token. Optional: gives you signed image URLs and access to items that
# are hidden from guests. The recommended value is a scoped greeting token
# (Account -> Shell tokens, or /tokens in the app): those only work with
# /api/random/, so they are safe to keep in this file. The full API token
# works too, but grants everything.
# if (-not $env:J621_TOKEN) { $env:J621_TOKEN = 'j621r_paste-your-token-here' }
# fastfetch config name used for the greeting logo.
# if (-not $env:J621_FASTFETCH_CONFIG) { $env:J621_FASTFETCH_CONFIG = 'jake' }
# Force a fastfetch logo type instead of the per-terminal default
# (Windows Terminal -> sixel, WezTerm -> iterm with preserveAspectRatio,
# others -> no image).
# if (-not $env:J621_LOGO_TYPE) { $env:J621_LOGO_TYPE = 'iterm' }
# if (-not $env:J621_LOGO_HEIGHT) { $env:J621_LOGO_HEIGHT = '25' }