docs: demo library generator, headless screenshots of the new launcher, README status and keys
No files matched your search
@@ -11,26 +11,39 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/media/summit-home.png" width="100%" alt="Summit Home view: cover boxes of the most played games with hours played, on a dark navbar with Home, Library and Unfiltered tabs.">
|
||||
<img src="docs/media/summit-home.png" width="100%" alt="Summit Home in the Big Picture layout: the focused game's wide art fills the top of the window behind its logo, hours played and a large Play button; below it a shelf of cover art with a glowing focus ring on the first cover.">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/media/summit-library.png" width="49%" alt="Summit Library view">
|
||||
<img src="docs/media/summit-unfiltered.png" width="49%" alt="Summit Unfiltered view: compact list grouped by source with the reason each entry was detected">
|
||||
<img src="docs/media/summit-library.png" width="49%" alt="Summit Library as a cover grid with filter chips, a sort chip and a search box">
|
||||
<img src="docs/media/summit-list.png" width="49%" alt="Summit Library in the List layout: dense rows with a small cover, title, hours played, last played, source and installed state">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/media/summit-list.png" width="49%" alt="Summit in list layout, Midnight theme">
|
||||
<img src="docs/media/summit-daylight.png" width="49%" alt="Summit in the light Daylight theme">
|
||||
</p>
|
||||
<p align="center">
|
||||
<img src="docs/media/summit-violet.png" width="49%" alt="Summit Library in the Violet theme">
|
||||
<img src="docs/media/summit-detail.png" width="49%" alt="A game's page: cover, Play, Pin, stats tiles, the launch profile and why Summit lists it. Change artwork and Settings carry a Soon badge.">
|
||||
<img src="docs/media/summit-settings.png" width="49%" alt="Summit settings: layout, six theme swatches, interface size, animation speed and style, clip lengths">
|
||||
</p>
|
||||
|
||||
<p align="center"><sub>Real window captures of the Slint GUI running on a KDE neon test VM (X11), from its real Steam account: Steam's own cover art and playtime. Steam isn't logged in there, so Steam games read "Not installed". <b>Voidrunner</b> is installed and added by hand, with the portrait art from its own Steam package. Layout (big grid or list) and theme (Midnight, Steam blue, Daylight, Violet) are switchable in the navbar. Nothing was running in a game; the in-game overlay does not exist yet.</sub></p>
|
||||
<p align="center">
|
||||
<img src="docs/media/summit-unfiltered.png" width="49%" alt="Summit Unfiltered: a list grouped by source, each entry with the reasons it was detected">
|
||||
<img src="docs/media/summit-deck.png" width="49%" alt="Summit Home at 1280x800, the Steam Deck's resolution, with focus on the Pinned shelf">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/media/summit-steam.png" width="32%" alt="Steam blue theme">
|
||||
<img src="docs/media/summit-daylight.png" width="32%" alt="Daylight theme, Grid layout">
|
||||
<img src="docs/media/summit-violet.png" width="32%" alt="Violet theme">
|
||||
</p>
|
||||
<p align="center">
|
||||
<img src="docs/media/summit-contrast.png" width="32%" alt="High contrast theme, List layout">
|
||||
<img src="docs/media/summit-oled.png" width="32%" alt="OLED black theme, a game's page">
|
||||
<img src="docs/media/summit-home-focus.png" width="32%" alt="Midnight theme with focus moved along the shelf: the backdrop follows the focused game">
|
||||
</p>
|
||||
|
||||
<p align="center"><sub><b>These are headless renders, not window captures.</b> They are the real UI drawn by Slint's software renderer with <code>docs/demo/screenshots.sh</code>: still frames, so they show no animation. <b>The library is a demo</b>: invented game titles with generated cover art and made-up playtime, written to disk as a Steam library so the real scanner reads it. <b>Voidrunner</b> is real (the author's own game), added by hand with its own artwork. Nothing was running in a game; the in-game overlay does not exist yet.</sub></p>
|
||||
|
||||
> [!NOTE]
|
||||
> **Pre-alpha.** What works today is the command-line core: library scanning with detection reasons, playtime tracking, Home pins, custom artwork, and per-game display profiles applied at launch. The launcher GUI, Steam shortcut export, in-game overlay and upscaling/frame-gen backends are planned and are **not built yet**. Nothing below is marked as working unless it is.
|
||||
> **Pre-alpha.** What works today is the command-line core (library scanning with detection reasons, playtime tracking, Home pins, custom artwork, per-game display profiles applied at launch) and the launcher window that sits on top of it. Steam shortcut export, the in-game overlay and applying upscaling or frame generation to a launched game are planned and are **not built yet**. Nothing below is marked as working unless it is.
|
||||
|
||||
## Why
|
||||
|
||||
@@ -46,12 +59,17 @@
|
||||
| Heuristic game detection with a reason for every hit | Working |
|
||||
| Hours played: Steam's own playtime for Steam games, Summit-tracked sessions for everything else (never added together) | Working |
|
||||
| Windows `.exe` files outside a Wine prefix listed as Software in Unfiltered, with the reason | Working |
|
||||
| Pin to Home and custom artwork per entry (CLI) | Working. GUI editing planned. |
|
||||
| Pin to Home and custom artwork per entry | Working. Pin and unpin from the CLI or the launcher (both write `state.json`). Artwork is CLI only (`summit art`); the launcher's "Change artwork" button is marked Soon. |
|
||||
| Display profile applied at launch: monitor, resolution, refresh rate | Working for KDE Wayland (`kscreen-doctor`), wlroots Wayland (`wlr-randr`) and X11 (`xrandr`). **GNOME Wayland has no stable tool, so Summit says so and skips it. Command plans are unit tested; real monitor changes are not yet verified on hardware.** |
|
||||
| Per-game fullscreen, focus, upscaler and frame-gen settings | Stored. Fullscreen, focus and the upscaling are not applied yet. |
|
||||
| Launcher GUI (Slint): Home / Library / Unfiltered, tweakable animations | Working (first version). Built with Slint; cover art from Steam's cache, tab animations with a speed slider. Run `summit-gui`. Not yet: launching from it, artwork editing, install buttons. |
|
||||
| Big grid or list layout, four themes, switchable in the navbar | Working (not yet saved between runs, no full-screen "big picture" mode yet) |
|
||||
| Instant replay with a PS5-style length picker: keep 15 s to 10 min, save 15 s, 30 s, 1 m, 3 m, 5 m or 10 m with Ctrl+1..6 (R saves the default length) | **Engine working** (tested with a synthetic stream on the 3090: a 15 s save and a 600 s request capped at the 40 s actually buffered). Not tested on a live game, and there is no GUI settings page for it yet. Key binds work in the engine's own window only; a global key is not built for Linux yet. |
|
||||
| Launcher window (Slint): Home, Library, Unfiltered, a page per game, Settings | Working. Run `summit-gui`. Home has a hero for the focused game (its wide art as backdrop, logo, hours, Play) over shelves: Jump back in, Pinned, Most played. Library is a cover grid that fits the window, or a dense list, with All / Installed / Not installed, three sort orders and search. Checked in headless renders at 1600x900, 1280x800 and 900x600, and in a real window under Xvfb. **Not checked on a real desktop, GPU or TV yet.** |
|
||||
| Layouts (Big picture, Grid, List) and six themes (Midnight, Steam blue, Daylight, Violet, High contrast, OLED black) | Working. Saved to `~/.config/summit/ui.toml` with interface size and the animation settings, and loaded at start. |
|
||||
| Animations with a speed slider (0 turns them off) and three styles | Working in a real window under Xvfb (frames captured mid-transition). How smooth they are on real hardware has not been judged. |
|
||||
| Keyboard navigation: arrows, Enter, Esc, Tab between sections, `/` to search, P to pin, F11 fullscreen | Working (driven by synthetic key events in the headless renders and in the Xvfb window). |
|
||||
| Game controller navigation (d-pad or left stick, A, B, X, LB/RB) | Written, reads `/dev/input/js*`. Decoding and mapping are unit tested. **Not tested with a real controller.** |
|
||||
| Play from the launcher | Steam games are handed to the Steam client (`steam steam://rungameid/<id>`, or `steam://install/<id>` when not installed). Games added by hand go through `summit run`, so the profile is applied and the session tracked. Lutris uses `lutris lutris:rungame/<slug>`. The commands are unit tested; **no game was actually started from the launcher yet** (no Steam on the build machine). Heroic and folders found on disk cannot be started yet and the button says so. |
|
||||
| Covers for 600+ games | Lists only create the rows on screen, and covers are decoded to thumbnails on a worker thread when a card first appears. Rendered headless with a 662-game library. Not profiled on real hardware. |
|
||||
| Instant replay with a PS5-style length picker: keep 15 s to 10 min, save 15 s, 30 s, 1 m, 3 m, 5 m or 10 m with Ctrl+1..6 (R saves the default length) | **Engine working** (tested with a synthetic stream on the 3090: a 15 s save and a 600 s request capped at the 40 s actually buffered). Not tested on a live game. The launcher's settings page stores both lengths in `ui.toml` and `summit enhance` passes them to the engine; that path is unit tested, not run against the engine. Key binds work in the engine's own window only; a global key is not built for Linux yet. |
|
||||
| In-game overlay with a watermark showing the project URL | Planned |
|
||||
| One-click "Add to Steam" with SteamGridDB artwork | Planned |
|
||||
| "My PS5" and "Capture Card" entries (Remote Play, capture cards, Moonlight, Sunshine) | Planned. Reuses the SmoovPlay pipeline. |
|
||||
@@ -97,11 +115,33 @@ The engine needs an NVIDIA GPU and its own Python environment (`engine/`, torch
|
||||
|
||||
The engine keeps a rolling buffer of what you played (hardware encoded, so it costs little), like the PS5's Share button. Pick how far back to keep with `--replay` (15, 30, 60, 180, 300 or 600 seconds) and what a save writes with `--clip-length`. In the video window, **R** saves the default length and **Ctrl+1 to Ctrl+6** save 15 s, 30 s, 1 m, 3 m, 5 m or 10 m. A clip is never longer than the buffer holds.
|
||||
|
||||
## The three views
|
||||
## The launcher
|
||||
|
||||
- **Home**: your most played games, from Steam's own playtime data.
|
||||
- **Library**: everything, installed or not, with install and add buttons.
|
||||
- **Unfiltered**: a compact list grouped by source, with the reason each entry was detected.
|
||||
```sh
|
||||
./target/release/summit-gui # scan Steam, Heroic, Lutris and what you added by hand
|
||||
./target/release/summit-gui ~/Games # also look through a folder for games
|
||||
./target/release/summit-gui --fullscreen # start fullscreen (F11 toggles)
|
||||
```
|
||||
|
||||
- **Home**: the focused game as a hero, over shelves: Jump back in (recently played), Pinned, Most played. Hours come from Steam's own playtime for Steam games and from Summit's sessions for everything else.
|
||||
- **Library**: every game, installed or not. Cover grid or dense list, filter, sort, search.
|
||||
- **Unfiltered**: everything on this machine, grouped by source, with the reason each entry was detected.
|
||||
- **A game's page** (Enter on a game): stats, launch profile, detection reasons, Play, Pin.
|
||||
- **Settings** (the gear): layout, theme, interface size, animation speed and style, clip lengths, default upscaler and frame generation for `summit enhance`.
|
||||
|
||||
| Key | Controller | Does |
|
||||
|---|---|---|
|
||||
| Arrows | d-pad, left stick | Move focus |
|
||||
| Enter | A | Open the game's page, press the focused button |
|
||||
| Esc | B | Back, or Home |
|
||||
| Tab, Shift+Tab | RB, LB | Next, previous section |
|
||||
| P | X | Pin or unpin the focused game |
|
||||
| / | | Search the library |
|
||||
| F11 | | Fullscreen |
|
||||
|
||||
The window uses Slint's OpenGL renderer (FemtoVG) and falls back to its software renderer. To add a theme, append one palette to `Theme.palettes` in `crates/summit-gui/ui/theme.slint`.
|
||||
|
||||
Headless renders, for screenshots and for checking the UI without a display: `SUMMIT_SHOT=<dir>` writes a PNG and exits. `SUMMIT_VIEW`, `SUMMIT_LAYOUT`, `SUMMIT_THEME`, `SUMMIT_DETAIL`, `SUMMIT_KEYS`, `SUMMIT_SIZE` and `SUMMIT_SCALE` choose what is drawn; they are described at the top of `crates/summit-gui/src/shot.rs`.
|
||||
|
||||
## Also on
|
||||
|
||||
|
||||
@@ -0,0 +1,162 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Build a demo HOME for Summit's README screenshots: an invented Steam library with generated art,
|
||||
a few Heroic/Lutris/on-disk entries, and Voidrunner as a hand-added game.
|
||||
|
||||
python3 docs/demo/make_demo_home.py /tmp/demo [path/to/voidrunner/art]
|
||||
|
||||
Nothing here is a real game except Voidrunner (the author's own); its art folder (portrait.png, hero.png,
|
||||
logo.png) is optional. All playtime numbers are made up. Needs Pillow and the DejaVu fonts.
|
||||
"""
|
||||
import colorsys, json, math, os, random, shutil, sys, time
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
|
||||
home = sys.argv[1]
|
||||
VOID = sys.argv[2] if len(sys.argv) > 2 else None
|
||||
now = int(time.time())
|
||||
D, H = 86400, 3600
|
||||
shutil.rmtree(home, ignore_errors=True)
|
||||
steam = f"{home}/.local/share/Steam"
|
||||
data = f"{home}/.local/share"
|
||||
cfg = f"{home}/.config"
|
||||
for d in [f"{steam}/steamapps/common", f"{steam}/userdata/1/config", f"{steam}/appcache/librarycache", f"{data}/summit", f"{cfg}/summit", f"{home}/Games"]:
|
||||
os.makedirs(d, exist_ok=True)
|
||||
|
||||
INVENTED = ["Ember Circuit", "Hollow Tide", "Starlane Drifters", "Kiln and Kin", "Null Harbor", "Pocket Dynasty", "Rustwake", "Glasswing",
|
||||
"Thornfield Rally", "Deep Signal", "Cinder Saints", "Moonpost", "Tiny Armada", "Verdant Protocol", "Low Orbit Taxi", "Paper Kingdoms",
|
||||
"Fathom Nine", "Brass Meridian", "Saltwind", "Quiet Machines", "Lantern Row", "Overgrowth 77", "Signal Hill", "Mothlight",
|
||||
"Gravel Kings", "Northbound", "Hexwright", "Dune Courier"]
|
||||
mins = [7310, 5120, 3890, 2950, 2410, 1980, 1620, 1333, 1010, 860, 640, 505, 388, 240, 181, 122, 96, 71, 44, 30, 18, 9, 4, 0, 0, 0, 0, 0]
|
||||
lasts = [5*H, 2*D, 1*D, 9*D, 4*D, 30*D, 3*D, 60*D, 14*D, 90*D, 7*D, 200*D, 120*D, 300*D, 20*D, 400*D, 500*D, 45*D, 600*D, 700*D, 800*D, 900*D, 1000*D, 0, 0, 0, 0, 0]
|
||||
inst = [1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]
|
||||
GAMES = [(900001 + i, n, bool(inst[i]), mins[i], lasts[i]) for i, n in enumerate(INVENTED)]
|
||||
names = {}
|
||||
def acf(appid, name, flags=4):
|
||||
open(f"{steam}/steamapps/appmanifest_{appid}.acf", "w").write(
|
||||
f'"AppState"\n{{\n\t"appid"\t\t"{appid}"\n\t"name"\t\t"{name}"\n\t"StateFlags"\t\t"{flags}"\n\t"installdir"\t\t"{name}"\n}}\n')
|
||||
|
||||
apps = ""
|
||||
for appid, name, installed, minutes, ago in GAMES:
|
||||
if installed: acf(appid, name)
|
||||
else: names[str(appid)] = {"name": name, "kind": "game"}
|
||||
apps += f'\t\t\t\t\t"{appid}"\n\t\t\t\t\t{{\n\t\t\t\t\t\t"Playtime"\t\t"{minutes}"\n\t\t\t\t\t\t"LastPlayed"\t\t"{now - ago if ago else 0}"\n\t\t\t\t\t}}\n'
|
||||
acf(1493710, "Proton Experimental"); acf(1628350, "Steam Linux Runtime 3.0 (sniper)"); acf(250820, "SteamVR")
|
||||
open(f"{steam}/userdata/1/config/localconfig.vdf", "w").write(
|
||||
'"UserLocalConfigStore"\n{\n\t"Software"\n\t{\n\t\t"Valve"\n\t\t{\n\t\t\t"Steam"\n\t\t\t{\n\t\t\t\t"apps"\n\t\t\t\t{\n' + apps + '\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n')
|
||||
json.dump(names, open(f"{data}/summit/steam-names.json", "w"))
|
||||
|
||||
# ---- art ----
|
||||
def font(size, bold=True):
|
||||
return ImageFont.truetype("/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf" if bold else "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf", size)
|
||||
|
||||
def hsv(h, s, v):
|
||||
return tuple(int(c * 255) for c in colorsys.hsv_to_rgb(h % 1.0, s, v))
|
||||
|
||||
def scene(w, h, seed):
|
||||
r = random.Random(seed)
|
||||
hue = r.random()
|
||||
top, bot = hsv(hue, 0.75, 0.28), hsv(hue + r.choice([0.08, 0.45, 0.55, -0.1]), 0.8, 0.85)
|
||||
im = Image.new("RGB", (w, h))
|
||||
px = ImageDraw.Draw(im)
|
||||
for y in range(h):
|
||||
t = (y / h) ** 1.3
|
||||
px.line([(0, y), (w, y)], fill=tuple(int(top[i] + (bot[i] - top[i]) * t) for i in range(3)))
|
||||
style = r.randrange(4)
|
||||
ov = Image.new("RGBA", (w, h), (0, 0, 0, 0)); d = ImageDraw.Draw(ov)
|
||||
sun = hsv(hue + 0.12, 0.35, 1.0)
|
||||
cx, cy, rad = int(w * r.uniform(0.3, 0.75)), int(h * r.uniform(0.44, 0.58)), int(min(w, h) * r.uniform(0.16, 0.26))
|
||||
d.ellipse([cx - rad, cy - rad, cx + rad, cy + rad], fill=sun + (235,))
|
||||
if style == 0: # mountain ranges
|
||||
for layer in range(4):
|
||||
base = h * (0.55 + layer * 0.11); pts = [(0, h)]; x = -40
|
||||
while x < w + 80:
|
||||
pts.append((x, base - r.uniform(0, h * 0.22))); x += r.uniform(w * 0.06, w * 0.16)
|
||||
pts.append((w, h))
|
||||
d.polygon(pts, fill=hsv(hue + 0.02 * layer, 0.7, 0.42 - layer * 0.09) + (255,))
|
||||
elif style == 1: # city blocks
|
||||
x = 0
|
||||
while x < w:
|
||||
bw = r.uniform(w * 0.04, w * 0.11); bh = r.uniform(h * 0.15, h * 0.5)
|
||||
d.rectangle([x, h - bh, x + bw - 4, h], fill=hsv(hue + 0.5, 0.5, r.uniform(0.08, 0.2)) + (255,))
|
||||
for _ in range(int(bh / 26)):
|
||||
wx, wy = x + r.uniform(4, max(5, bw - 12)), h - r.uniform(8, bh - 8)
|
||||
d.rectangle([wx, wy, wx + 5, wy + 8], fill=sun + (200,))
|
||||
x += bw
|
||||
elif style == 2: # rings and orbits
|
||||
for i in range(7):
|
||||
rr = rad * (1.3 + i * 0.45)
|
||||
d.ellipse([cx - rr, cy - rr * 0.45, cx + rr, cy + rr * 0.45], outline=(255, 255, 255, 120 - i * 14), width=3)
|
||||
for _ in range(140):
|
||||
sx, sy = r.uniform(0, w), r.uniform(0, h)
|
||||
d.ellipse([sx, sy, sx + 2, sy + 2], fill=(255, 255, 255, r.randint(60, 200)))
|
||||
else: # waves
|
||||
for layer in range(6):
|
||||
base = h * (0.5 + layer * 0.09); pts = [(0, h)]
|
||||
ph, amp, fr = r.uniform(0, 6), r.uniform(h * 0.015, h * 0.05), r.uniform(1.5, 4)
|
||||
for x in range(0, w + 20, 20):
|
||||
pts.append((x, base + math.sin(x / w * fr * 6.28 + ph) * amp))
|
||||
pts.append((w, h))
|
||||
d.polygon(pts, fill=hsv(hue + 0.5 + layer * 0.015, 0.65, 0.55 - layer * 0.07) + (255,))
|
||||
im.paste(ov, (0, 0), ov)
|
||||
return im, hue
|
||||
|
||||
def title_on(im, text, box, size, align="center", fill=(255, 255, 255)):
|
||||
d = ImageDraw.Draw(im)
|
||||
x0, y0, x1, y1 = box
|
||||
words, lines, f = text.upper().split(), [], font(size)
|
||||
cur = ""
|
||||
for wd in words:
|
||||
t = (cur + " " + wd).strip()
|
||||
if d.textlength(t, font=f) > (x1 - x0) and cur: lines.append(cur); cur = wd
|
||||
else: cur = t
|
||||
lines.append(cur)
|
||||
y = y0
|
||||
for ln in lines:
|
||||
tw = d.textlength(ln, font=f)
|
||||
x = x0 + ((x1 - x0) - tw) / 2 if align == "center" else x0
|
||||
d.text((x + 3, y + 4), ln, font=f, fill=(0, 0, 0))
|
||||
d.text((x, y), ln, font=f, fill=fill)
|
||||
y += int(size * 1.24)
|
||||
|
||||
def make_art(appid, name):
|
||||
d = f"{steam}/appcache/librarycache/{appid}"; os.makedirs(d, exist_ok=True)
|
||||
cover, _ = scene(600, 900, appid)
|
||||
title_on(cover, name, (50, 70, 550, 400), 74 if len(name) < 12 else 60)
|
||||
cover.save(f"{d}/library_600x900.jpg", quality=90)
|
||||
hero, _ = scene(1920, 620, appid)
|
||||
hero.save(f"{d}/library_hero.jpg", quality=90)
|
||||
logo = Image.new("RGBA", (900, 300), (0, 0, 0, 0))
|
||||
title_on(logo, name, (0, 40, 900, 300), 96 if len(name) < 12 else 76, align="left")
|
||||
logo.save(f"{d}/logo.png")
|
||||
|
||||
for i, (appid, name, *_) in enumerate(GAMES):
|
||||
if i not in (11, 19, 23): make_art(appid, name) # a few stay without art to show the fallback card
|
||||
|
||||
# ---- Voidrunner (custom entry, Zeb's own game) and other sources ----
|
||||
vr = f"{home}/Games/Voidrunner"; os.makedirs(vr)
|
||||
open(f"{vr}/voidrunner.sh", "w").write("#!/bin/sh\necho voidrunner\n"); os.chmod(f"{vr}/voidrunner.sh", 0o755)
|
||||
artwork = {}
|
||||
if VOID:
|
||||
for n, key in [("portrait", "custom:voidrunner"), ("hero", "custom:voidrunner#hero"), ("logo", "custom:voidrunner#logo")]:
|
||||
if os.path.isfile(f"{VOID}/{n}.png"):
|
||||
shutil.copy(f"{VOID}/{n}.png", f"{vr}/{n}.png"); artwork[key] = f"{vr}/{n}.png"
|
||||
state = {
|
||||
"custom": [{"id": "custom:voidrunner", "title": "Voidrunner", "path": f"{vr}/voidrunner.sh", "software": False}],
|
||||
"pinned": ["custom:voidrunner"] + ([f"steam:{GAMES[2][0]}", f"steam:{GAMES[5][0]}", f"steam:{GAMES[8][0]}"]),
|
||||
"artwork": artwork,
|
||||
"tracked": {"custom:voidrunner": {"seconds": 151200, "sessions": 37, "last_played": now - 40 * 60},
|
||||
"lutris:lantern-keeper": {"seconds": 30600, "sessions": 12, "last_played": now - 12 * D}},
|
||||
}
|
||||
json.dump(state, open(f"{data}/summit/state.json", "w"), indent=1)
|
||||
os.makedirs(f"{cfg}/summit/profiles")
|
||||
open(f"{cfg}/summit/profiles/custom_voidrunner.toml", "w").write('monitor = "HDMI-A-1"\nwidth = 3840\nheight = 2160\nrefresh_hz = 60.0\nfullscreen = true\nfocus = true\nupscaler = "fsr"\nframegen = "rife"\nframegen_multiplier = 2\ntarget_hz = 120\nlaunch_args = []\n')
|
||||
os.makedirs(f"{cfg}/heroic/legendaryConfig/legendary"); os.makedirs(f"{cfg}/heroic/gog_store")
|
||||
hn = ["Marble Run Deluxe", "Skyline Courier"]
|
||||
json.dump({"a1": {"title": hn[0], "install_path": f"{home}/Games/Heroic/a1"}, "a2": {"title": hn[1], "install_path": f"{home}/Games/Heroic/a2"}}, open(f"{cfg}/heroic/legendaryConfig/legendary/installed.json", "w"))
|
||||
os.makedirs(f"{data}/lutris/games")
|
||||
for slug in ["lantern-keeper", "old-school-quest"]:
|
||||
open(f"{data}/lutris/games/{slug}-1.yml", "w").write(f"game_slug: {slug}\nrunner: wine\nexe: {home}/Games/lutris/{slug}/game.exe\n")
|
||||
g = f"{home}/Games/Scans/Tunnel_Rats"; os.makedirs(g)
|
||||
for n in ["TunnelRats.x86_64", "UnityPlayer.so", "libsteam_api.so"]: open(f"{g}/{n}", "w").write("")
|
||||
g = f"{home}/Games/Scans/Mod-Manager"; os.makedirs(g); open(f"{g}/ModManager.exe", "w").write("MZ")
|
||||
g = f"{home}/Games/Scans/Ancient_Shareware"; os.makedirs(g); open(f"{g}/setup.exe", "w").write("MZ")
|
||||
print(home, len(GAMES), "demo Steam games")
|
||||
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
# Regenerate the README screenshots in docs/media/ from the demo library (see make_demo_home.py).
|
||||
# These are headless renders of the real UI with the software renderer: static frames, no animation.
|
||||
# docs/demo/screenshots.sh [path/to/voidrunner/art]
|
||||
set -e
|
||||
cd "$(dirname "$0")/../.."
|
||||
DEMO=${SUMMIT_DEMO_HOME:-/tmp/demo}
|
||||
python3 docs/demo/make_demo_home.py "$DEMO" "$@"
|
||||
cargo build --release -p summit-gui
|
||||
shot() {
|
||||
name=$1; shift
|
||||
rm -f "$DEMO/.config/summit/ui.toml"
|
||||
env HOME="$DEMO" XDG_CONFIG_HOME="$DEMO/.config" XDG_DATA_HOME="$DEMO/.local/share" \
|
||||
SUMMIT_SHOT=docs/media SUMMIT_NAME="summit-$name" "$@" ./target/release/summit-gui "$DEMO/Games"
|
||||
}
|
||||
shot home
|
||||
shot home-focus SUMMIT_KEYS="Right Right Right"
|
||||
shot library SUMMIT_VIEW=library SUMMIT_KEYS="Down Right Right"
|
||||
shot list SUMMIT_VIEW=library SUMMIT_LAYOUT=list SUMMIT_KEYS="Down Down Down"
|
||||
shot unfiltered SUMMIT_VIEW=unfiltered SUMMIT_KEYS="Down"
|
||||
shot detail SUMMIT_DETAIL=custom:voidrunner
|
||||
shot settings SUMMIT_VIEW=settings
|
||||
shot steam SUMMIT_THEME=steam SUMMIT_KEYS="Right"
|
||||
shot daylight SUMMIT_THEME=daylight SUMMIT_VIEW=library SUMMIT_LAYOUT=grid SUMMIT_KEYS="Right"
|
||||
shot violet SUMMIT_THEME=violet SUMMIT_KEYS="Right Right"
|
||||
shot contrast SUMMIT_THEME=contrast SUMMIT_VIEW=library SUMMIT_LAYOUT=list SUMMIT_KEYS="Down"
|
||||
shot oled SUMMIT_THEME=oled SUMMIT_DETAIL="hollow tide"
|
||||
shot deck SUMMIT_SIZE=1280x800 SUMMIT_KEYS="Down Right"
|
||||
|
After Width: | Height: | Size: 168 KiB |
|
Before Width: | Height: | Size: 812 KiB After Width: | Height: | Size: 614 KiB |
|
After Width: | Height: | Size: 376 KiB |
|
After Width: | Height: | Size: 430 KiB |
|
After Width: | Height: | Size: 441 KiB |
|
Before Width: | Height: | Size: 815 KiB After Width: | Height: | Size: 647 KiB |
|
Before Width: | Height: | Size: 812 KiB After Width: | Height: | Size: 500 KiB |
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 163 KiB |
|
After Width: | Height: | Size: 230 KiB |
|
After Width: | Height: | Size: 152 KiB |
|
After Width: | Height: | Size: 440 KiB |
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 233 KiB |
|
Before Width: | Height: | Size: 814 KiB After Width: | Height: | Size: 455 KiB |